linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/1] HWMON compatibility layer for power supplies
@ 2019-06-12  8:44 Andrey Smirnov
  2019-06-12  8:44 ` [PATCH v4 1/1] power: supply: Add HWMON compatibility layer Andrey Smirnov
  0 siblings, 1 reply; 4+ messages in thread
From: Andrey Smirnov @ 2019-06-12  8:44 UTC (permalink / raw)
  To: linux-pm
  Cc: Andrey Smirnov, Chris Healy, Cory Tusar, Lucas Stach,
	Fabio Estevam, Guenter Roeck, Sebastian Reichel, linux-kernel

Everyone:

This small series contains the code I wrote to expose various power
supply sensors via HWMON layer in order to be able to access all of
the sensors in the system with libsensors.

Changes since [v3]:

  - Patch converted to have HWMON be registered in
    power_supply_register() and free'd in power_supply_unregister().

  - Collected Tested-by from Chris

Changes since [v2]:

  - Added missing static specified to devm_power_supply_add_hwmon_sysfs()
  
  - Collected Reviewed-by from Guenter

Changes since [v1]:

  - All multiplications converted to use check_mul_overflow()

  - All divisions converted to use DIV_ROUND_CLOSEST()

  - Places that were ignoring errors now don't

  - Alphabetized include list

[v3] lkml.kernel.org/r/20190605072323.21990-1-andrew.smirnov@gmail.com
[v2] lkml.kernel.org/r/20190531011620.9383-1-andrew.smirnov@gmail.com
[v1] lkml.kernel.org/r/20190529071112.16849-1-andrew.smirnov@gmail.com

Thanks,
Andrey Smirnov

Andrey Smirnov (1):
  power: supply: Add HWMON compatibility layer

 drivers/power/supply/Kconfig              |  14 +
 drivers/power/supply/Makefile             |   1 +
 drivers/power/supply/power_supply_core.c  |   7 +
 drivers/power/supply/power_supply_hwmon.c | 355 ++++++++++++++++++++++
 include/linux/power_supply.h              |  13 +
 5 files changed, 390 insertions(+)
 create mode 100644 drivers/power/supply/power_supply_hwmon.c

-- 
2.21.0


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

end of thread, other threads:[~2019-07-09  7:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-12  8:44 [PATCH v4 0/1] HWMON compatibility layer for power supplies Andrey Smirnov
2019-06-12  8:44 ` [PATCH v4 1/1] power: supply: Add HWMON compatibility layer Andrey Smirnov
2019-06-27 18:27   ` Sebastian Reichel
2019-07-09  7:27     ` Andrey Smirnov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).