[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aYiRIawCbuto7Pch@smile.fi.intel.com>
Date: Sun, 8 Feb 2026 15:35:29 +0200
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: Neel Bullywon <neelb2403@...il.com>
Cc: Jonathan Cameron <jic23@...nel.org>,
David Lechner <dlechner@...libre.com>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5 2/2] iio: magnetometer: bmc150_magn: minor formatting
cleanup
On Sat, Feb 07, 2026 at 08:16:59PM -0500, Neel Bullywon wrote:
> Add spaces inside braces for initializer lists in the sampling
> frequency and preset tables for consistency.
>
> Fix indentation of bmc150_magn_scan_masks array and add trailing
> comma. No functional changes.
...
> +} bmc150_magn_samp_freq_table[] = { { 2, 0x01 },
> + { 6, 0x02 },
> + { 8, 0x03 },
> + { 10, 0x00 },
> + { 15, 0x04 },
> + { 20, 0x05 },
> + { 25, 0x06 },
> + { 30, 0x07 } };
While at it, fix the style, the above is weird one.
} bmc150_magn_samp_freq_table[] = {
{ 2, 0x01 },
{ 6, 0x02 },
{ 8, 0x03 },
{ 10, 0x00 },
{ 15, 0x04 },
{ 20, 0x05 },
{ 25, 0x06 },
{ 30, 0x07 },
// also mind a comma
};
OR alternatively
} bmc150_magn_samp_freq_table[] = {
{ 2, 0x01 }, { 6, 0x02 }, { 8, 0x03 }, { 10, 0x00 }, /* 0 - 3 */
{ 15, 0x04 }, { 20, 0x05 }, { 25, 0x06 }, { 30, 0x07 }, /* 4 - 7 */
};
...
> static const unsigned long bmc150_magn_scan_masks[] = {
> + BIT(AXIS_X) | BIT(AXIS_Y) | BIT(AXIS_Z),
> + 0,
No comma for the terminator, please.
> +};
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists