[PATCH] mtd-core: add writesize in MEMGETINFO ioctl

Sascha Hauer s.hauer at pengutronix.de
Sat Oct 13 08:31:08 EDT 2012


On Sat, Oct 13, 2012 at 09:45:28AM +0200, Alexander Aring wrote:
> Add writesize in MEMGETINFO ioctl.
> 
> Signed-off-by: Alexander Aring <alex.aring at gmail.com>

Applied, thanks

Sascha

> ---
>  drivers/mtd/core.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mtd/core.c b/drivers/mtd/core.c
> index 6550741..7c323a1 100644
> --- a/drivers/mtd/core.c
> +++ b/drivers/mtd/core.c
> @@ -143,6 +143,7 @@ int mtd_ioctl(struct cdev *cdev, int request, void *buf)
>  		user->flags	= mtd->flags;
>  		user->size	= mtd->size;
>  		user->erasesize	= mtd->erasesize;
> +		user->writesize	= mtd->writesize;
>  		user->oobsize	= mtd->oobsize;
>  		user->mtd	= mtd;
>  		/* The below fields are obsolete */
> -- 
> 1.7.12.2
> 
> 
> _______________________________________________
> 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