mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
iio: magnetometer: mmc35240: NULL terminate attribute array
This avoid nasty crashes when registering the IIO device.
Fixes: abeb6b1e7b ("iio: magnetometer: Add support for MEMSIC MMC35240")
Signed-off-by: Daniel Baluta <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
This commit is contained in:
parent
a52ffebcf1
commit
bd35a214f5
1 changed files with 1 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ static const struct iio_chan_spec mmc35240_channels[] = {
|
|||
|
||||
static struct attribute *mmc35240_attributes[] = {
|
||||
&iio_const_attr_sampling_frequency_available.dev_attr.attr,
|
||||
NULL
|
||||
};
|
||||
|
||||
static const struct attribute_group mmc35240_attribute_group = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue