]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
PM / devfreq: shut up kernel-doc warnings
authorMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 28 Jun 2022 09:46:12 +0000 (10:46 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 15 Jul 2022 02:40:08 +0000 (11:40 +0900)
There are 4 warnings there:
drivers/devfreq/devfreq.c:707: warning: Function parameter or member 'val' not described in 'qos_min_notifier_call'
drivers/devfreq/devfreq.c:707: warning: Function parameter or member 'ptr' not described in 'qos_min_notifier_call'
drivers/devfreq/devfreq.c:717: warning: Function parameter or member 'val' not described in 'qos_max_notifier_call'
drivers/devfreq/devfreq.c:717: warning: Function parameter or member 'ptr' not described in 'qos_max_notifier_call'

It turns that neither val nor ptr are actually used on those
function, so document as such.

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c

index 9602141bb8ec49d8fbf47a160616c4a107e51720..63347a5ae5999af2053b0802d71dcae1c551d0e2 100644 (file)
@@ -696,6 +696,8 @@ static int qos_notifier_call(struct devfreq *devfreq)
 /**
  * qos_min_notifier_call() - Callback for QoS min_freq changes.
  * @nb:                Should be devfreq->nb_min
+ * @val:       not used
+ * @ptr:       not used
  */
 static int qos_min_notifier_call(struct notifier_block *nb,
                                         unsigned long val, void *ptr)
@@ -706,6 +708,8 @@ static int qos_min_notifier_call(struct notifier_block *nb,
 /**
  * qos_max_notifier_call() - Callback for QoS max_freq changes.
  * @nb:                Should be devfreq->nb_max
+ * @val:       not used
+ * @ptr:       not used
  */
 static int qos_max_notifier_call(struct notifier_block *nb,
                                         unsigned long val, void *ptr)