aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <[email protected]>2015-03-12 08:44:01 +0100
committerSebastian Reichel <[email protected]>2015-03-13 22:52:52 +0100
commite44ea364394499d38a26ed4c9668fb378ae8797f (patch)
treefaa70daae9bf311bcf12a2104e5a533b20a5e41d /net/lapb/lapb_iface.c
parent1915a718b1872edffcb13e5436a9f7302d3d36f0 (diff)
power_supply: Add driver private data
Allow drivers to store private data inside power_supply structure for later usage in power supply operations. Usage of driver private data is necessary to access driver's state container object from power supply calls (like get_property()) if struct 'power_supply' is a stored there as a pointer, for example: struct some_driver_info { struct i2c_client *client; struct power_supply *power_supply; ... } In such case one cannot use container_of() and must store pointer to state container as private data. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Bartlomiej Zolnierkiewicz <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]> Acked-by: Pavel Machek <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions