From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Shih-Yuan Lee <fourdollars@debian.org>
Cc: Mark Brown <broonie@kernel.org>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Lukas Wunner <lukas@wunner.de>, Daniel Mack <daniel@zonque.org>,
Haojian Zhuang <haojian.zhuang@gmail.com>,
Robert Jarzmik <robert.jarzmik@free.fr>,
linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v17 1/6] spi: pxa2xx: rename local status variable to ret
Date: Thu, 1 Oct 2026 10:10:40 +0300 [thread overview]
Message-ID: <ar4HcFk_IW7IBAgk@ashevche-desk.local> (raw)
In-Reply-To: <20260930160629.1822-2-fourdollars@debian.org>
On Thu, Oct 01, 2026 at 12:06:24AM +0800, Shih-Yuan Lee wrote:
> Rename the return value variable name from 'status' to 'ret' in the
> pxa2xx_spi_probe(), pxa2xx_spi_suspend(), and pxa2xx_spi_resume()
> functions to conform to standard Linux kernel coding conventions.
>
> Assisted-by: Antigravity:gemini-3.8-flash sparse
Assisted-by: LLM
...
> - status = request_irq(ssp->irq, ssp_int, IRQF_SHARED, dev_name(dev),
> + ret = request_irq(ssp->irq, ssp_int, IRQF_SHARED, dev_name(dev),
> drv_data);
Also fix the indentation of the second line. Actually just join them to become
a single line.
> - if (status < 0)
> - return dev_err_probe(dev, status, "cannot get IRQ %d\n", ssp->irq);
> + if (ret < 0)
> + return dev_err_probe(dev, ret, "cannot get IRQ %d\n", ssp->irq);
...
> drv_data->gpiod_ready = devm_gpiod_get_optional(dev,
> "ready", GPIOD_OUT_LOW);
> if (IS_ERR(drv_data->gpiod_ready)) {
> - status = PTR_ERR(drv_data->gpiod_ready);
> + ret = PTR_ERR(drv_data->gpiod_ready);
> goto out_error_clock_enabled;
> }
Actually this can be redone as
ret = PTR_ERR_OR_ZERO(drv_data->gpiod_ready);
if (ret)
goto out_error_clock_enabled;
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-10-01 7:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 16:06 [PATCH v17 0/6] spi: pxa2xx: PM fixes, teardown overhaul, and LPSS restore for MacBook8,1 Shih-Yuan Lee
2026-09-30 16:06 ` [PATCH v17 1/6] spi: pxa2xx: rename local status variable to ret Shih-Yuan Lee
2026-10-01 7:10 ` Andy Shevchenko [this message]
2026-09-30 16:06 ` [PATCH v17 2/6] spi: pxa2xx: introduce clock enable and disable helper functions Shih-Yuan Lee
2026-09-30 17:31 ` Mark Brown
2026-10-01 7:13 ` Andy Shevchenko
2026-09-30 16:06 ` [PATCH v17 3/6] spi: pxa2xx: acquire active PM runtime reference in interrupt handler Shih-Yuan Lee
2026-09-30 17:40 ` Mark Brown
2026-09-30 16:06 ` [PATCH v17 4/6] spi: pxa2xx: overhaul teardown and suspend sequence to synchronize IRQ before clock gating Shih-Yuan Lee
2026-09-30 16:06 ` [PATCH v17 5/6] spi: pxa2xx-pci: restore LPSS private register state across S3 resume Shih-Yuan Lee
2026-10-01 4:13 ` Mika Westerberg
2026-10-01 7:20 ` Andy Shevchenko
2026-09-30 16:06 ` [PATCH v17 6/6] spi: pxa2xx-pci: disable DMA and runtime autosuspend for Apple MacBook8,1 Shih-Yuan Lee
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=ar4HcFk_IW7IBAgk@ashevche-desk.local \
--to=andriy.shevchenko@linux.intel.com \
--cc=broonie@kernel.org \
--cc=daniel@zonque.org \
--cc=fourdollars@debian.org \
--cc=haojian.zhuang@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=mika.westerberg@linux.intel.com \
--cc=robert.jarzmik@free.fr \
/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.