All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] hwmon: (sch5627) Use devres function
@ 2021-04-17 21:09 W_Armin
  2021-04-17 21:09 ` [PATCH 1/2] " W_Armin
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: W_Armin @ 2021-04-17 21:09 UTC (permalink / raw)
  To: hdegoede; +Cc: jdelvare, linux, linux-hwmon

From: Armin Wolf <W_Armin@gmx.de>

Use devm_hwmon_device_register_with_info() to simplify
the source code and remove an unnecessary error path
in sch5627_probe as it performs nothing useful when
using the devres function.

Tested on a Fujitsu Esprimo P720.

Armin Wolf (2):
  hwmon: (sch5627) Use devres function
  hwmon: (sch5627) Remove unnecessary error path

 drivers/hwmon/sch5627.c | 81 ++++++++++++++---------------------------
 1 file changed, 28 insertions(+), 53 deletions(-)

--
2.20.1


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

end of thread, other threads:[~2021-04-19  3:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-17 21:09 [PATCH 0/2] hwmon: (sch5627) Use devres function W_Armin
2021-04-17 21:09 ` [PATCH 1/2] " W_Armin
2021-04-17 21:09 ` [PATCH 2/2] hwmon: (sch5627) Remove unnecessary error path W_Armin
2021-04-18 12:48 ` [PATCH 0/2] hwmon: (sch5627) Use devres function Hans de Goede
2021-04-19  3:59 ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.