public inbox for linux-iio@vger.kernel.org
help / color / mirror / Atom feed
* [PATCH] iio: ssp_sensors: cleanup codestyle warning
@ 2026-04-26 10:56 Sanjay Chitroda
2026-04-26 14:36 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Sanjay Chitroda @ 2026-04-26 10:56 UTC (permalink / raw)
To: jic23; +Cc: dlechner, nuno.sa, andy, sanjayembeddedse, linux-iio,
linux-kernel
From: Sanjay Chitroda <sanjayembeddedse@gmail.com>
Reported by checkpatch:
FILE: drivers/iio/common/ssp_sensors/ssp_iio.c
WARNING: Block comments use a trailing */ on a separate line
+ * */
Signed-off-by: Sanjay Chitroda <sanjayembeddedse@gmail.com>
---
drivers/iio/common/ssp_sensors/ssp_iio.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/iio/common/ssp_sensors/ssp_iio.c b/drivers/iio/common/ssp_sensors/ssp_iio.c
index 78ac689de2fe..e83f589fd72c 100644
--- a/drivers/iio/common/ssp_sensors/ssp_iio.c
+++ b/drivers/iio/common/ssp_sensors/ssp_iio.c
@@ -24,9 +24,10 @@ int ssp_common_buffer_postenable(struct iio_dev *indio_dev)
struct ssp_sensor_data *spd = iio_priv(indio_dev);
struct ssp_data *data = dev_get_drvdata(indio_dev->dev.parent->parent);
- /* the allocation is made in post because scan size is known in this
+ /*
+ * the allocation is made in post because scan size is known in this
* moment
- * */
+ */
spd->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL | GFP_DMA);
if (!spd->buffer)
return -ENOMEM;
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iio: ssp_sensors: cleanup codestyle warning
2026-04-26 10:56 [PATCH] iio: ssp_sensors: cleanup codestyle warning Sanjay Chitroda
@ 2026-04-26 14:36 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2026-04-26 14:36 UTC (permalink / raw)
To: Sanjay Chitroda; +Cc: dlechner, nuno.sa, andy, linux-iio, linux-kernel
On Sun, 26 Apr 2026 16:26:53 +0530
Sanjay Chitroda <sanjayembeddedse@gmail.com> wrote:
> From: Sanjay Chitroda <sanjayembeddedse@gmail.com>
>
> Reported by checkpatch:
> FILE: drivers/iio/common/ssp_sensors/ssp_iio.c
>
> WARNING: Block comments use a trailing */ on a separate line
> + * */
>
> Signed-off-by: Sanjay Chitroda <sanjayembeddedse@gmail.com>
> ---
> drivers/iio/common/ssp_sensors/ssp_iio.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/common/ssp_sensors/ssp_iio.c b/drivers/iio/common/ssp_sensors/ssp_iio.c
> index 78ac689de2fe..e83f589fd72c 100644
> --- a/drivers/iio/common/ssp_sensors/ssp_iio.c
> +++ b/drivers/iio/common/ssp_sensors/ssp_iio.c
> @@ -24,9 +24,10 @@ int ssp_common_buffer_postenable(struct iio_dev *indio_dev)
> struct ssp_sensor_data *spd = iio_priv(indio_dev);
> struct ssp_data *data = dev_get_drvdata(indio_dev->dev.parent->parent);
>
> - /* the allocation is made in post because scan size is known in this
> + /*
> + * the allocation is made in post because scan size is known in this
> * moment
> - * */
> + */
> spd->buffer = kmalloc(indio_dev->scan_bytes, GFP_KERNEL | GFP_DMA);
Hmm - I missed this in previous but you dropped a GFP_DMA marking
and it's just possible this platform has restricted DMA addressing and
needs them.
Otherwise it should be easy to cap how big this buffer can get and hence
do similar change to make it fixed size in ssp_sensor_data.
> if (!spd->buffer)
> return -ENOMEM;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-26 14:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-26 10:56 [PATCH] iio: ssp_sensors: cleanup codestyle warning Sanjay Chitroda
2026-04-26 14:36 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox