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: Add detail to comments in GEN INTR configuration

Append additional information to existing comments in the generic
interrupt configuration code to provide more context.

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
6ea3b542 31f3af62

+8 -2
+8 -2
drivers/iio/accel/bma400_core.c
··· 1208 1208 detect_criterion = bma400_genintr->detect_mode; 1209 1209 intrmask = bma400_genintr->intrmask; 1210 1210 1211 - /* Enabling all axis for interrupt evaluation */ 1211 + /* 1212 + * Enabling all axis for interrupt evaluation 1213 + * Acc_filt2 is recommended as data source in datasheet (Section 4.7) 1214 + */ 1212 1215 ret = regmap_write(data->regmap, BMA400_GENINT_CONFIG_REG(genintr, 0), 1213 1216 BMA400_GENINT_CONFIG0_X_EN_MASK | 1214 1217 BMA400_GENINT_CONFIG0_Y_EN_MASK | ··· 1229 1226 if (ret) 1230 1227 return ret; 1231 1228 1232 - /* Initial value to avoid interrupts while enabling*/ 1229 + /* 1230 + * Initial value to avoid interrupts while enabling 1231 + * Value is in units of 8mg/lsb, i.e. effective val is val * 8mg/lsb 1232 + */ 1233 1233 ret = regmap_write(data->regmap, BMA400_GENINT_CONFIG_REG(genintr, 2), 0x0A); 1234 1234 if (ret) 1235 1235 return ret;