diff options
author | Yong Li <sdliyong@gmail.com> | 2015-08-12 21:25:46 +0800 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-08-16 10:51:27 +0100 |
commit | 70b2737e0a948552843ce1b8500e033080677086 (patch) | |
tree | 8d7409354be6b156dac212e1d07c0af6ce639812 /drivers/iio/adc/xilinx-xadc.h | |
parent | iio: percolate error if event fd fails (diff) | |
download | wireguard-linux-70b2737e0a948552843ce1b8500e033080677086.tar.xz wireguard-linux-70b2737e0a948552843ce1b8500e033080677086.zip |
staging: iio: hmc5843: Set iio name dynamically
Load the driver using the below command:
echo hmc5983 0x1e > /sys/bus/i2c/devices/i2c-?/new_device
In sysfs, the iio name is hmc5843, however the i2c name is hmc5983,
they are inconsistent.
With this patch, the iio name will be the same as the i2c device name
Signed-off-by: Yong Li <sdliyong@gmail.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/xilinx-xadc.h')
0 files changed, 0 insertions, 0 deletions