]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: rpi: add module alias to raspberrypi-hwmon
authorPeter Robinson <pbrobinson@gmail.com>
Fri, 20 Jul 2018 23:02:12 +0000 (00:02 +0100)
committerFlorian Fainelli <f.fainelli@gmail.com>
Wed, 5 Sep 2018 18:58:00 +0000 (11:58 -0700)
commitace441dd5bbdd0cce2a616ec9957c7514606b363
treef1d63a83106df7f64b0c1ad578230efc206a91fc
parentf030a7bb7b1f7de16c1c716a587185e209e25800
hwmon: rpi: add module alias to raspberrypi-hwmon

The raspberrypi-hwmon driver doesn't automatically load, although it does work
when loaded, by adding the alias it auto loads as expected when built as a
module. Tested on RPi2/RPi3 on 32 bit kernel and RPi3B+ on aarch64 with
Fedora 28 and a patched 4.18 RC kernel.

Fixes: 3c493c885cf ("hwmon: Add support for RPi voltage sensor")
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
CC: Stefan Wahren <stefan.wahren@i2se.com>
CC: Eric Anholt <eric@anholt.net>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/hwmon/raspberrypi-hwmon.c