Re: [PATCH 1/2] iio: accel: adxl345: propagate errors when reading event configuration

From: Joshua Crofts

Date: Sun Oct 11 2026 - 13:00:23 EST


On Sun, 11 Oct 2026 02:15:41 -0400
赵文强 <berringtoni36@xxxxxxxxx> wrote:

> diff --git a/drivers/iio/accel/adxl345_core.c b/drivers/iio/accel/adxl345_core.c
> index 6c9080d..5983fc7 100644
> --- a/drivers/iio/accel/adxl345_core.c
> +++ b/drivers/iio/accel/adxl345_core.c
> @@ -1176,9 +1176,9 @@ static int adxl345_read_mag_config(struct

This patch is corrupted - I assume the email client you're using added
a hard break here, therefore it fails to apply :(

Additionally, you didn't use a cover letter, so patch 2 appears as a
reply to patch 1, which may break tooling.

Please use git send-email to send patches to prevent these issues.

> adxl345_state *st,
> {
> switch (dir) {
> case IIO_EV_DIR_RISING:
> - return !!adxl345_is_act_inact_en(st, type_act);
> + return adxl345_is_act_inact_en(st, type_act);
> case IIO_EV_DIR_FALLING:
> - return !!adxl345_is_act_inact_en(st, type_inact);
> + return adxl345_is_act_inact_en(st, type_inact);
> default:
> return -EINVAL;
> }
>
> base-commit: 9ee8306121495d2a25aa5d1bfd519f2748786b83



--
Kind regards,
Joshua Crofts