[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241101163535.644a006f@jic23-huawei>
Date: Fri, 1 Nov 2024 16:35:35 +0000
From: Jonathan Cameron <jic23@...nel.org>
To: Julien Stephan <jstephan@...libre.com>
Cc: Mudit Sharma <muditsharma.info@...il.com>, Lars-Peter Clausen
<lars@...afoo.de>, Anshul Dalal <anshulusr@...il.com>, Javier Carrasco
<javier.carrasco.cruz@...il.com>, Jean-Baptiste Maneyrol
<jean-baptiste.maneyrol@....com>, Michael Hennerich
<Michael.Hennerich@...log.com>, Cosmin Tanislav
<cosmin.tanislav@...log.com>, Ramona Gradinariu
<ramona.gradinariu@...log.com>, Antoniu Miclaus
<antoniu.miclaus@...log.com>, Dan Robertson <dan@...obertson.com>, Marcelo
Schmitt <marcelo.schmitt@...log.com>, Matteo Martelli
<matteomartelli3@...il.com>, Anand Ashok Dumbre
<anand.ashok.dumbre@...inx.com>, Michal Simek <michal.simek@....com>,
Mariel Tinaco <Mariel.Tinaco@...log.com>, Jagath Jog J
<jagathjog1996@...il.com>, Lorenzo Bianconi <lorenzo@...nel.org>, Subhajit
Ghosh <subhajit.ghosh@...aklogic.com>, Kevin Tsai <ktsai@...ellamicro.com>,
Linus Walleij <linus.walleij@...aro.org>, Benson Leung
<bleung@...omium.org>, Guenter Roeck <groeck@...omium.org>,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, chrome-platform@...ts.linux.dev
Subject: Re: [PATCH v2 10/15] iio: imu: bmi323: use bool for event state
On Thu, 31 Oct 2024 16:27:05 +0100
Julien Stephan <jstephan@...libre.com> wrote:
> 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@...libre.com>
Applied.
> ---
> drivers/iio/imu/bmi323/bmi323_core.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/iio/imu/bmi323/bmi323_core.c b/drivers/iio/imu/bmi323/bmi323_core.c
> index 76a88e1ccc1d89988eb52d6b1be8da0f5005f0e6..161bb1d2e761688dd740635f8a2830e9562d1b59 100644
> --- a/drivers/iio/imu/bmi323/bmi323_core.c
> +++ b/drivers/iio/imu/bmi323/bmi323_core.c
> @@ -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;
>
Powered by blists - more mailing lists