diff options
author | Ognjen Galic <[email protected]> | 2018-02-07 15:58:27 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2018-02-21 23:27:13 +0100 |
commit | 285995d15d3b1725d021a8a274e55f2ce30ccfa0 (patch) | |
tree | 1aefa04c3ce461968403105edc9e7f5bada19475 /lib/mpi | |
parent | fa93854f7a7ed63d054405bf3779247d5300edd3 (diff) |
power: add to_power_supply macro to the API
This patch adds the to_power_supply macro to upcast
a device to a power_supply struct.
This is needed because the same piece of code using
container_of is used in various other places, so we
abstract away such low-level operations via a macro.
Suggested-by: Andy Shevchenko <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Ognjen Galic <[email protected]>
Reviewed-by: Sebastian Reichel <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions