All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tzung-Bi Shih <tzungbi@kernel.org>
To: Gwendal Grignou <gwendal@google.com>
Cc: Jonathan Cameron <jic23@kernel.org>,
	Gwendal Grignou <gwendal@chromium.org>,
	chrome-platform@lists.linux.dev, linux-iio@vger.kernel.org
Subject: Re: [PATCH v4] iio: cros_ec_sensors: add cros_ec_activity driver
Date: Thu, 5 Jun 2025 03:13:37 +0000	[thread overview]
Message-ID: <aEELYUvKZ8FYLqPU@google.com> (raw)
In-Reply-To: <CAMHSBOUb-HPqmW3CFspipNGQGzbYUV+oqVw-Cbw0Bk4Huwz-QQ@mail.gmail.com>

On Tue, Jun 03, 2025 at 10:41:25PM -0700, Gwendal Grignou wrote:
> > > diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
> [...]
> > > @@ -2716,6 +2728,14 @@ struct ec_params_motion_sense {
> > >                        */
> > >                       int16_t hys_degree;
> > >               } tablet_mode_threshold;
> > > +
> > > +             /*
> > > +              * Used for MOTIONSENSE_CMD_GET_ACTIVITY.
> >
> > Single line comment works fine here and fits with local style.
> >                 /* Used for MOTIONSENSE_CMD_GET_ACTIVITY */
> >
> > > +              */
> > > +             struct __ec_todo_unpacked {
> > > +                     uint8_t sensor_num;
> > > +                     uint8_t activity;  /* enum motionsensor_activity */
> > > +             } get_activity;
> > >       };
> > >  } __ec_todo_packed;
> > >
> > > @@ -2833,6 +2853,10 @@ struct ec_response_motion_sense {
> > >                       uint16_t hys_degree;
> > >               } tablet_mode_threshold;
> > >
> > > +             /* USED for MOTIONSENSE_CMD_GET_ACTIVITY. */
> >
> > Maybe no fullstop is more consistent with local style? Only a bit visible
> > in this patch and I'm lazy  :)
> It is a mix and match in this file. Full stop is supposed to be the
> norm, but it was not always been the case. Remove full stop to blend
> with other commands.

It seems the full stop is still in v5.

Just a side note: people manually synchronizes the header with [1] when
needed.  I wouldn't bother with the details in the header as long as the
struct content is the same with [1].  Fix it or leave it as is are both
fine for me.

[1]: https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/main/include/ec_commands.h

  reply	other threads:[~2025-06-05  3:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-23 17:27 [PATCH v4] iio: cros_ec_sensors: add cros_ec_activity driver Gwendal Grignou
2025-05-25 13:42 ` Jonathan Cameron
2025-06-04  5:41   ` Gwendal Grignou
2025-06-05  3:13     ` Tzung-Bi Shih [this message]
2025-06-07 16:13     ` Jonathan Cameron
2025-05-25 13:43 ` Jonathan Cameron

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=aEELYUvKZ8FYLqPU@google.com \
    --to=tzungbi@kernel.org \
    --cc=chrome-platform@lists.linux.dev \
    --cc=gwendal@chromium.org \
    --cc=gwendal@google.com \
    --cc=jic23@kernel.org \
    --cc=linux-iio@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.