Revision 0632448134d0ac1450a19d26f90948fde3b558ad authored by Karicheri, Muralidharan on 19 February 2016, 17:58:44 UTC, committed by David S. Miller on 22 February 2016, 03:03:15 UTC
SW data field in descriptor can be used by software to hold private
data for the driver. As there are 4 words available for this purpose,
use separate macros to place it or retrieve the same to/from
descriptors. Also do type cast of data types accordingly.

Cc: Wingman Kwok <w-kwok2@ti.com>
Cc: Mugunthan V N <mugunthanvnm@ti.com>
CC: Arnd Bergmann <arnd@arndb.de>
CC: Grygorii Strashko <grygorii.strashko@ti.com>
CC: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b1cb86a
History
File Mode Size
Makefile -rw-r--r-- 65 bytes
kobject-example.c -rw-r--r-- 3.4 KB
kset-example.c -rw-r--r-- 6.9 KB

back to top