Re: [PATCH v2] staging: iio: hmc5843: Set iio name dynamically

2015-08-15 Thread Jonathan Cameron
On 12/08/15 16:21, Lars-Peter Clausen wrote: > On 08/12/2015 03:25 PM, sdliy...@gmail.com wrote: >> From: Yong Li >> >> 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, >>

Re: [PATCH v2] staging: iio: hmc5843: Set iio name dynamically

2015-08-12 Thread Lars-Peter Clausen
On 08/12/2015 03:25 PM, sdliy...@gmail.com wrote: > From: Yong Li > > 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 ii

[PATCH v2] staging: iio: hmc5843: Set iio name dynamically

2015-08-12 Thread sdliyong
From: Yong Li 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