* [PATCH] iio: adc: ad7173: move opening brace to a separate line
@ 2026-02-23 8:24 Giorgi Tchankvetadze
2026-02-23 8:32 ` Andy Shevchenko
0 siblings, 1 reply; 5+ messages in thread
From: Giorgi Tchankvetadze @ 2026-02-23 8:24 UTC (permalink / raw)
To: lars, Michael.Hennerich, jic23
Cc: dlechner, nuno.sa, andy, linux-iio, linux-kernel,
Giorgi Tchankvetadze
Place the opening brace of ad7173_calc_openwire_thrsh_raw() on its own
line to comply with the kernel coding style for function definitions.
Issue found by checkpatch.
Signed-off-by: Giorgi Tchankvetadze <giorgitchankvetadze1997@gmail.com>
---
drivers/iio/adc/ad7173.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/iio/adc/ad7173.c b/drivers/iio/adc/ad7173.c
index d36612352b44..f76a9e08f39e 100644
--- a/drivers/iio/adc/ad7173.c
+++ b/drivers/iio/adc/ad7173.c
@@ -1763,7 +1763,8 @@ static int ad7173_validate_openwire_ain_inputs(struct ad7173_state *st,
static unsigned int ad7173_calc_openwire_thrsh_raw(struct ad7173_state *st,
struct iio_chan_spec *chan,
struct ad7173_channel *chan_st_priv,
- unsigned int thrsh_mv) {
+ unsigned int thrsh_mv)
+{
unsigned int thrsh_raw;
thrsh_raw =
--
2.52.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] iio: adc: ad7173: move opening brace to a separate line
2026-02-23 8:24 [PATCH] iio: adc: ad7173: move opening brace to a separate line Giorgi Tchankvetadze
@ 2026-02-23 8:32 ` Andy Shevchenko
2026-02-23 8:40 ` Giorgi Tchankvetadze
0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2026-02-23 8:32 UTC (permalink / raw)
To: Giorgi Tchankvetadze
Cc: lars, Michael.Hennerich, jic23, dlechner, nuno.sa, andy,
linux-iio, linux-kernel
On Mon, Feb 23, 2026 at 12:24:00PM +0400, Giorgi Tchankvetadze wrote:
> Place the opening brace of ad7173_calc_openwire_thrsh_raw() on its own
> line to comply with the kernel coding style for function definitions.
> Issue found by checkpatch.
Is it the only problem like this in the entire driver?
If so, feel free to add
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] iio: adc: ad7173: move opening brace to a separate line
2026-02-23 8:32 ` Andy Shevchenko
@ 2026-02-23 8:40 ` Giorgi Tchankvetadze
2026-02-23 8:51 ` Andy Shevchenko
0 siblings, 1 reply; 5+ messages in thread
From: Giorgi Tchankvetadze @ 2026-02-23 8:40 UTC (permalink / raw)
To: Andy Shevchenko
Cc: lars, Michael.Hennerich, jic23, dlechner, nuno.sa, andy,
linux-iio, linux-kernel
On Mon, Feb 23, 2026 at 12:32 PM Andy Shevchenko
<andriy.shevchenko@intel.com> wrote:
>
> On Mon, Feb 23, 2026 at 12:24:00PM +0400, Giorgi Tchankvetadze wrote:
> > Place the opening brace of ad7173_calc_openwire_thrsh_raw() on its own
> > line to comply with the kernel coding style for function definitions.
> > Issue found by checkpatch.
>
> Is it the only problem like this in the entire driver?
> If so, feel free to add
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
>
> --
> With Best Regards,
> Andy Shevchenko
>
>
Thanks for the review, Andy. Yes, it is the only instance of this
issue in the driver. I verified with checkpatch and a manual grep for
function definitions with opening braces on the same line.
Giorgi
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] iio: adc: ad7173: move opening brace to a separate line
2026-02-23 8:40 ` Giorgi Tchankvetadze
@ 2026-02-23 8:51 ` Andy Shevchenko
2026-02-23 21:21 ` Jonathan Cameron
0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2026-02-23 8:51 UTC (permalink / raw)
To: Giorgi Tchankvetadze
Cc: lars, Michael.Hennerich, jic23, dlechner, nuno.sa, andy,
linux-iio, linux-kernel
On Mon, Feb 23, 2026 at 12:40:10PM +0400, Giorgi Tchankvetadze wrote:
> On Mon, Feb 23, 2026 at 12:32 PM Andy Shevchenko
> <andriy.shevchenko@intel.com> wrote:
> >
> > On Mon, Feb 23, 2026 at 12:24:00PM +0400, Giorgi Tchankvetadze wrote:
> > > Place the opening brace of ad7173_calc_openwire_thrsh_raw() on its own
> > > line to comply with the kernel coding style for function definitions.
> > > Issue found by checkpatch.
> >
> > Is it the only problem like this in the entire driver?
> > If so, feel free to add
> > Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
>
> Thanks for the review, Andy. Yes, it is the only instance of this
> issue in the driver. I verified with checkpatch and a manual grep for
> function definitions with opening braces on the same line.
Thanks for confirming, no need to resend with my tag, the tooling
Jonathan uses picks this up.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] iio: adc: ad7173: move opening brace to a separate line
2026-02-23 8:51 ` Andy Shevchenko
@ 2026-02-23 21:21 ` Jonathan Cameron
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Cameron @ 2026-02-23 21:21 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Giorgi Tchankvetadze, lars, Michael.Hennerich, dlechner, nuno.sa,
andy, linux-iio, linux-kernel
On Mon, 23 Feb 2026 10:51:29 +0200
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:
> On Mon, Feb 23, 2026 at 12:40:10PM +0400, Giorgi Tchankvetadze wrote:
> > On Mon, Feb 23, 2026 at 12:32 PM Andy Shevchenko
> > <andriy.shevchenko@intel.com> wrote:
> > >
> > > On Mon, Feb 23, 2026 at 12:24:00PM +0400, Giorgi Tchankvetadze wrote:
> > > > Place the opening brace of ad7173_calc_openwire_thrsh_raw() on its own
> > > > line to comply with the kernel coding style for function definitions.
> > > > Issue found by checkpatch.
> > >
> > > Is it the only problem like this in the entire driver?
> > > If so, feel free to add
> > > Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
> >
> > Thanks for the review, Andy. Yes, it is the only instance of this
> > issue in the driver. I verified with checkpatch and a manual grep for
> > function definitions with opening braces on the same line.
>
> Thanks for confirming, no need to resend with my tag, the tooling
> Jonathan uses picks this up.
>
Applied to the testing branch of iio.git. I have a bunch of other
stuff I applied tonight that I want the autobuilders to play with
before I push this out as something linux-next will pick up
Thanks,
Jonathan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-02-23 21:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-23 8:24 [PATCH] iio: adc: ad7173: move opening brace to a separate line Giorgi Tchankvetadze
2026-02-23 8:32 ` Andy Shevchenko
2026-02-23 8:40 ` Giorgi Tchankvetadze
2026-02-23 8:51 ` Andy Shevchenko
2026-02-23 21:21 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox