lkml.org 
[lkml]   [2023]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] thermal: imx8mm_thermal: Fix function pointer declaration by adding identifier name
From

On 17/09/23 14:04, Bragatheswaran Manickavel wrote:

>Added identifier names to respective definitions for fix
>warnings reported by checkpatch.pl
>
>WARNING: function definition argument 'void *' should also have an
identifier name
>WARNING: function definition argument 'int *' should also have an
identifier name
>Signed-off-by: Bragatheswaran Manickavel <bragathemanick0908@gmail.com>
>---
> drivers/thermal/imx8mm_thermal.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/thermal/imx8mm_thermal.c
b/drivers/thermal/imx8mm_thermal.c
>index 14111ccf6e4c..5dc6c18f12df 100644
>--- a/drivers/thermal/imx8mm_thermal.c
>+++ b/drivers/thermal/imx8mm_thermal.c
>@@ -78,7 +78,7 @@
> struct thermal_soc_data {
>     u32 num_sensors;
>     u32 version;
>-    int (*get_temp)(void *, int *);
>+    int (*get_temp)(void *data, int *temp);
> };
>
> struct tmu_sensor {

Gentle remainder

\
 
 \ /
  Last update: 2023-09-19 19:12    [W:0.060 / U:1.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site