mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] mtd-core: add writesize in MEMGETINFO ioctl
@ 2012-10-13  7:45 Alexander Aring
  2012-10-13 12:31 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Aring @ 2012-10-13  7:45 UTC (permalink / raw)
  To: barebox

Add writesize in MEMGETINFO ioctl.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-13 12:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-13  7:45 [PATCH] mtd-core: add writesize in MEMGETINFO ioctl Alexander Aring
2012-10-13 12:31 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox