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: imu: bmi323: use bool for event state

Since the write_event_config callback now uses a bool for the state
parameter, update the signatures of the functions it calls accordingly.

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Link: https://patch.msgid.link/20241031-iio-fix-write-event-config-signature-v2-10-2bcacbb517a2@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Julien Stephan and committed by
Jonathan Cameron
96a59e30 48809782

+4 -4
+4 -4
drivers/iio/imu/bmi323/bmi323_core.c
··· 467 467 BMI323_FEAT_IO_STATUS_MSK); 468 468 } 469 469 470 - static int bmi323_step_wtrmrk_en(struct bmi323_data *data, int state) 470 + static int bmi323_step_wtrmrk_en(struct bmi323_data *data, bool state) 471 471 { 472 472 enum bmi323_irq_pin step_irq; 473 473 int ret; ··· 484 484 ret = bmi323_update_ext_reg(data, BMI323_STEP_SC1_REG, 485 485 BMI323_STEP_SC1_WTRMRK_MSK, 486 486 FIELD_PREP(BMI323_STEP_SC1_WTRMRK_MSK, 487 - state ? 1 : 0)); 487 + state)); 488 488 if (ret) 489 489 return ret; 490 490 ··· 506 506 } 507 507 508 508 static int bmi323_motion_event_en(struct bmi323_data *data, 509 - enum iio_event_direction dir, int state) 509 + enum iio_event_direction dir, bool state) 510 510 { 511 511 unsigned int state_value = state ? BMI323_FEAT_XYZ_MSK : 0; 512 512 int config, ret, msk, raw, field_value; ··· 570 570 } 571 571 572 572 static int bmi323_tap_event_en(struct bmi323_data *data, 573 - enum iio_event_direction dir, int state) 573 + enum iio_event_direction dir, bool state) 574 574 { 575 575 enum bmi323_irq_pin tap_irq; 576 576 int ret, tap_enabled;