mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
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>
This commit is contained in:
parent
4880978294
commit
96a59e302c
|
|
@ -467,7 +467,7 @@ static int bmi323_feature_engine_events(struct bmi323_data *data,
|
|||
BMI323_FEAT_IO_STATUS_MSK);
|
||||
}
|
||||
|
||||
static int bmi323_step_wtrmrk_en(struct bmi323_data *data, int state)
|
||||
static int bmi323_step_wtrmrk_en(struct bmi323_data *data, bool state)
|
||||
{
|
||||
enum bmi323_irq_pin step_irq;
|
||||
int ret;
|
||||
|
|
@ -484,7 +484,7 @@ static int bmi323_step_wtrmrk_en(struct bmi323_data *data, int state)
|
|||
ret = bmi323_update_ext_reg(data, BMI323_STEP_SC1_REG,
|
||||
BMI323_STEP_SC1_WTRMRK_MSK,
|
||||
FIELD_PREP(BMI323_STEP_SC1_WTRMRK_MSK,
|
||||
state ? 1 : 0));
|
||||
state));
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
|
@ -506,7 +506,7 @@ static int bmi323_motion_config_reg(enum iio_event_direction dir)
|
|||
}
|
||||
|
||||
static int bmi323_motion_event_en(struct bmi323_data *data,
|
||||
enum iio_event_direction dir, int state)
|
||||
enum iio_event_direction dir, bool state)
|
||||
{
|
||||
unsigned int state_value = state ? BMI323_FEAT_XYZ_MSK : 0;
|
||||
int config, ret, msk, raw, field_value;
|
||||
|
|
@ -570,7 +570,7 @@ static int bmi323_motion_event_en(struct bmi323_data *data,
|
|||
}
|
||||
|
||||
static int bmi323_tap_event_en(struct bmi323_data *data,
|
||||
enum iio_event_direction dir, int state)
|
||||
enum iio_event_direction dir, bool state)
|
||||
{
|
||||
enum bmi323_irq_pin tap_irq;
|
||||
int ret, tap_enabled;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user