[PATCH v2 05/19] common: firmware: Don't use FILE_SIZE_STREAM directly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Don't use FILE_SIZE_STREAM directly, use DEVFS_IS_CHARACTER_DEV to
denote that underlying cdev is a "character device".

Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx>
---
 common/firmware.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/firmware.c b/common/firmware.c
index 250fef537..9d55d73e7 100644
--- a/common/firmware.c
+++ b/common/firmware.c
@@ -177,7 +177,7 @@ int firmwaremgr_register(struct firmware_handler *fh)
 	cdev = &mgr->cdev;
 
 	cdev->name = xstrdup(fh->id);
-	cdev->size = FILE_SIZE_STREAM;
+	cdev->flags = DEVFS_IS_CHARACTER_DEV;
 	cdev->ops = &firmware_ops;
 	cdev->priv = mgr;
 	cdev->dev = fh->dev;
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux