From: Jonathan Cameron <jic23@kernel.org>
To: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: linux-iio@vger.kernel.org, lorenzo.bianconi@redhat.com,
jimmyassarsson@gmail.com, andy.shevchenko@gmail.com
Subject: Re: [PATCH v3] iio: imu: st_lsm6dsx: drop huge include in sensor-hub driver
Date: Sun, 12 Apr 2020 14:18:40 +0100 [thread overview]
Message-ID: <20200412141840.602ace16@archlinux> (raw)
In-Reply-To: <d49d9b76fab1ba0e33034327864d25ff64545bd9.1586199565.git.lorenzo@kernel.org>
On Mon, 6 Apr 2020 21:00:25 +0200
Lorenzo Bianconi <lorenzo@kernel.org> wrote:
> st_lsm6dsx is a standalone driver for STM IMU sensors and does not rely
> on st_sensor common framework, so it does not include st_sensor common
> definitions.
> In st_lsm6dsx_shub driver st_sensors.h is used just to introduce the
> default wai address for LIS3MDL sensor.
> Drop this largely unconnected include file and introduce the default wai
> address for LIS3MDL in st_lsm6dsx_ext_dev_settings register map
>
> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to play with it.
Thanks,
Jonathan
> ---
> Changes since v2:
> - rewrite commit message
>
> Changes since v1:
> - improve commit message
> ---
> drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c
> index 280925dd8edb..947ca3a7dcaf 100644
> --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c
> +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c
> @@ -28,7 +28,6 @@
> #include <linux/iio/sysfs.h>
> #include <linux/bitfield.h>
>
> -#include <linux/iio/common/st_sensors.h>
> #include "st_lsm6dsx.h"
>
> #define ST_LSM6DSX_SLV_ADDR(n, base) ((base) + (n) * 3)
> @@ -93,7 +92,7 @@ static const struct st_lsm6dsx_ext_dev_settings st_lsm6dsx_ext_dev_table[] = {
> {
> .i2c_addr = { 0x1e },
> .wai = {
> - .addr = ST_SENSORS_DEFAULT_WAI_ADDRESS,
> + .addr = 0x0f,
> .val = 0x3d,
> },
> .id = ST_LSM6DSX_ID_MAGN,
prev parent reply other threads:[~2020-04-12 13:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-06 19:00 [PATCH v3] iio: imu: st_lsm6dsx: drop huge include in sensor-hub driver Lorenzo Bianconi
2020-04-12 13:18 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200412141840.602ace16@archlinux \
--to=jic23@kernel.org \
--cc=andy.shevchenko@gmail.com \
--cc=jimmyassarsson@gmail.com \
--cc=linux-iio@vger.kernel.org \
--cc=lorenzo.bianconi@redhat.com \
--cc=lorenzo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox