Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: accel: bma400: Rename activity_event_en() to generic_event_en()

The function activity_event_en() configures the generic interrupts
GEN1 and GEN2, which are used for activity and inactivity detection
as per the datasheet. The existing name is misleading, since the
device also provides activity change and activity recognition
interrupts. Activity change interrupt is not supported yet whereas
Activity recognition interrupt is configured in a different function.

Rename activity_event_en() to generic_event_en() to better reflect its
actual purpose.

No functional changes intended.

Signed-off-by: Akshay Jindal <akshayaj.lkd@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Akshay Jindal and committed by
Jonathan Cameron
31f3af62 1a7a6c5d

+4 -4
+4 -4
drivers/iio/accel/bma400_core.c
··· 1190 1190 return 0; 1191 1191 } 1192 1192 1193 - static int bma400_activity_event_en(struct bma400_data *data, 1194 - enum iio_event_direction dir, 1195 - int state) 1193 + static int bma400_generic_event_en(struct bma400_data *data, 1194 + enum iio_event_direction dir, 1195 + int state) 1196 1196 { 1197 1197 int ret; 1198 1198 unsigned int intrmask, regval; ··· 1337 1337 switch (type) { 1338 1338 case IIO_EV_TYPE_MAG: 1339 1339 mutex_lock(&data->mutex); 1340 - ret = bma400_activity_event_en(data, dir, state); 1340 + ret = bma400_generic_event_en(data, dir, state); 1341 1341 mutex_unlock(&data->mutex); 1342 1342 return ret; 1343 1343 case IIO_EV_TYPE_GESTURE: