[PATCH] devfs-core: add writesize in mtd partition ioctl

Sascha Hauer s.hauer at pengutronix.de
Wed Oct 24 03:49:55 EDT 2012


On Tue, Oct 23, 2012 at 11:00:00AM +0200, Alexander Aring wrote:
> Add writesize in mtd partition MEMGETINFO ioctl.
> 
> Signed-off-by: Alexander Aring <alex.aring at gmail.com>

Just checked, we already have this one.

Sascha

> ---
>  fs/devfs-core.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/fs/devfs-core.c b/fs/devfs-core.c
> index 2788fe7..0d2f75a 100644
> --- a/fs/devfs-core.c
> +++ b/fs/devfs-core.c
> @@ -136,6 +136,7 @@ static int partition_ioctl(struct cdev *cdev, int request, void *buf)
>  			user->flags	= cdev->mtd->flags;
>  			user->size	= cdev->mtd->size;
>  			user->erasesize	= cdev->mtd->erasesize;
> +			user->writesize	= cdev->mtd->writesize;
>  			user->oobsize	= cdev->mtd->oobsize;
>  			user->mtd	= cdev->mtd;
>  			/* The below fields are obsolete */
> -- 
> 1.8.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list