* [PATCH] hwmon: (hih6130) fix kernel-doc warnings
@ 2023-01-13 6:45 Randy Dunlap
2023-01-15 16:04 ` Guenter Roeck
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2023-01-13 6:45 UTC (permalink / raw)
To: linux-kernel; +Cc: Randy Dunlap, Jean Delvare, Guenter Roeck, linux-hwmon
Use the correct function name in kernel-doc comments to prevent these
warnings:
drivers/hwmon/hih6130.c:164: warning: expecting prototype for hih6130_show_temperature(). Prototype was for hih6130_temperature_show() instead
drivers/hwmon/hih6130.c:185: warning: expecting prototype for hih6130_show_humidity(). Prototype was for hih6130_humidity_show() instead
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: linux-hwmon@vger.kernel.org
---
drivers/hwmon/hih6130.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -- a/drivers/hwmon/hih6130.c b/drivers/hwmon/hih6130.c
--- a/drivers/hwmon/hih6130.c
+++ b/drivers/hwmon/hih6130.c
@@ -150,7 +150,7 @@ out:
}
/**
- * hih6130_show_temperature() - show temperature measurement value in sysfs
+ * hih6130_temperature_show() - show temperature measurement value in sysfs
* @dev: device
* @attr: device attribute
* @buf: sysfs buffer (PAGE_SIZE) where measurement values are written to
@@ -172,7 +172,7 @@ static ssize_t hih6130_temperature_show(
}
/**
- * hih6130_show_humidity() - show humidity measurement value in sysfs
+ * hih6130_humidity_show() - show humidity measurement value in sysfs
* @dev: device
* @attr: device attribute
* @buf: sysfs buffer (PAGE_SIZE) where measurement values are written to
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] hwmon: (hih6130) fix kernel-doc warnings
2023-01-13 6:45 [PATCH] hwmon: (hih6130) fix kernel-doc warnings Randy Dunlap
@ 2023-01-15 16:04 ` Guenter Roeck
0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2023-01-15 16:04 UTC (permalink / raw)
To: Randy Dunlap; +Cc: linux-kernel, Jean Delvare, linux-hwmon
On Thu, Jan 12, 2023 at 10:45:49PM -0800, Randy Dunlap wrote:
> Use the correct function name in kernel-doc comments to prevent these
> warnings:
>
> drivers/hwmon/hih6130.c:164: warning: expecting prototype for hih6130_show_temperature(). Prototype was for hih6130_temperature_show() instead
> drivers/hwmon/hih6130.c:185: warning: expecting prototype for hih6130_show_humidity(). Prototype was for hih6130_humidity_show() instead
>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Jean Delvare <jdelvare@suse.com>
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: linux-hwmon@vger.kernel.org
Applied to hwmon-next.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-15 16:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13 6:45 [PATCH] hwmon: (hih6130) fix kernel-doc warnings Randy Dunlap
2023-01-15 16:04 ` Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®