hwmon: (sis5595) Introduce a #define for the driver name and use it
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 22 Sep 2022 07:48:59 +0000 (09:48 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 25 Sep 2022 21:22:11 +0000 (14:22 -0700)
commit847a3b04b32ee36b9049d48da23d70ee83cf6d0a
treec7256960b7ef4219f5a5cd55ea2209fe1143b6be
parent0dee25ebc7d315d9ee785ea5f457ae980979ea89
hwmon: (sis5595) Introduce a #define for the driver name and use it

Make use of the cpp symbol DRIVER_NAME to set the driver's name and use
it instead of all explicit usages of the same string. Also make use of
it instead of sis5595_driver.driver.name which breaks a cyclic dependency
between sis5595_probe() and sis5595_driver that in the next commit allows
to drop some forward declarations.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220922074900.2763331-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/sis5595.c