From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Gideon Adjei <gideonadjei.dev@gmail.com>
Cc: Vaibhav Hiremath <hvaibhav.linux@gmail.com>,
Johan Hovold <johan@kernel.org>, Alex Elder <elder@kernel.org>,
greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: greybus: replace WD_STATE_COLDBOOT_TRIG with state
Date: Mon, 5 Jan 2026 07:21:12 +0100 [thread overview]
Message-ID: <2026010547-slacks-comic-bc68@gregkh> (raw)
In-Reply-To: <20260104132541.17989-1-gideonadjei.dev@gmail.com>
On Sun, Jan 04, 2026 at 05:25:41AM -0800, Gideon Adjei wrote:
> use state temporary variable to replace WD_STATE_COLDBOOT_TRIG argument
> in arche_platform_set_wake_detect_state. This keeps lines under 80
> columns and satisfies kernel style guidelines.
>
> Signed-off-by: Gideon Adjei <gideonadjei.dev@gmail.com>
> ---
> drivers/staging/greybus/arche-platform.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c
> index 8aaff4e45660..bb9b3c3c7a2d 100644
> --- a/drivers/staging/greybus/arche-platform.c
> +++ b/drivers/staging/greybus/arche-platform.c
> @@ -155,6 +155,7 @@ static irqreturn_t arche_platform_wd_irq(int irq, void *devid)
> {
> struct arche_platform_drvdata *arche_pdata = devid;
> unsigned long flags;
> + int state;
>
> spin_lock_irqsave(&arche_pdata->wake_lock, flags);
>
> @@ -179,8 +180,8 @@ static irqreturn_t arche_platform_wd_irq(int irq, void *devid)
> */
> if (arche_pdata->wake_detect_state !=
> WD_STATE_COLDBOOT_START) {
> - arche_platform_set_wake_detect_state(arche_pdata,
> - WD_STATE_COLDBOOT_TRIG);
> + state = WD_STATE_COLDBOOT_TRIG;
> + arche_platform_set_wake_detect_state(arche_pdata, state);
No, sorry, the original code here is just fine, don't do things like
this just to make checkpatch "quiet".
thanks,
greg k-h
prev parent reply other threads:[~2026-01-05 6:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-04 13:25 [PATCH] staging: greybus: replace WD_STATE_COLDBOOT_TRIG with state Gideon Adjei
2026-01-05 6:21 ` Greg Kroah-Hartman [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=2026010547-slacks-comic-bc68@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=elder@kernel.org \
--cc=gideonadjei.dev@gmail.com \
--cc=greybus-dev@lists.linaro.org \
--cc=hvaibhav.linux@gmail.com \
--cc=johan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/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.