Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp139346imm; Mon, 4 Jun 2018 14:35:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKKiBYMJNe7sqwA+XV1Fns88GAU5ZUqHioXJor/QpdhrHCmnX1mV+CtGQX5Ucg19xcMRxAW X-Received: by 2002:a63:715d:: with SMTP id b29-v6mr19054451pgn.325.1528148107721; Mon, 04 Jun 2018 14:35:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528148107; cv=none; d=google.com; s=arc-20160816; b=iOz/CWeA3IoeEMWdN7BcK2BO5P1iyFuMlLNR4bC5FzMmnzrquCjkUNRi6ix6Fn6d0X +j0NBLF2Tx4L5irdwl6gaHHCZ3JLudbXNZm524BnUxCDpi2jQKg2bba4gyyI93WmCMXt Vve9a1mTervoqobVlF9bFY7DczhC0FquBNX2qqBQf4vbFNPLfGxwO30r1/w1SGamOmRw pkgJ6bfu+2/UPwnJt4vueicD2zAdNMJ/VAnrkuNugt7DLwGymqbCAZ+9zqFZAQmYzKtf xrfZBUX8YIYYKtPV2RlXxHdyFNfTZuJ47kTkBW0pFexi8982cNAFW0gbxuW8J48aAadK 6ZuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature:arc-authentication-results; bh=uAQFFqBwgk+kQPYYuhypc9F2AtEwBI1xcIe63SPekBg=; b=04YjbjXA9CK13Axypyj1fkSK9ORlXTbqTUWaRLOXqHeER5PikwX4JL9AmET/I3L9GG yXNnRBC3+Oez5SKySx27shznysSm/NQniQjLlyb+A2Xk2tPP8cnId5lE+TVg5ph3pOvR 9AvOKu6J/Eo39HBXuHxLYxS3mpQEq/hxFBJEno1TyohymJi26/yWkg/k6RdVpCOU2B8J nBT17GNb3qwS8t4g5lC7QSCEaJcaLtVw8PTmmIuRfOfWciuIEF7HQdGjTlVej0GtcdC6 shsGRsbRW3rtWuiUxCya0q/mwfHRLQVfXtnDdHPKVkc3XV2Tku0KfOYHpvUTH4A1k/f2 FtKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@pmeerw.net header.s=mail header.b=c8MpjMqu; dkim=fail header.i=@pmeerw.net header.s=mail header.b=EKrC8Wib; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pmeerw.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n10-v6si37082497pgq.472.2018.06.04.14.34.53; Mon, 04 Jun 2018 14:35:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@pmeerw.net header.s=mail header.b=c8MpjMqu; dkim=fail header.i=@pmeerw.net header.s=mail header.b=EKrC8Wib; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pmeerw.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751766AbeFDVeM (ORCPT + 99 others); Mon, 4 Jun 2018 17:34:12 -0400 Received: from ns.pmeerw.net ([84.19.176.117]:46532 "EHLO ns.pmeerw.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbeFDVeK (ORCPT ); Mon, 4 Jun 2018 17:34:10 -0400 Received: by ns.pmeerw.net (Postfix, from userid 113) id B3E16E05BE; Mon, 4 Jun 2018 23:34:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pmeerw.net; s=mail; t=1528148048; bh=odJiebNKjdnpKqO9Iw9VBzT2Y5jeu7U6Gll0rqGN4I8=; h=From:To:Cc:Subject:Date:From; b=c8MpjMquOpKx4WsI9s/p46ayhrbVodeqxU2BA3GEBYOV9kMzy1kncaf63ZUiwlqft jodEFX7vmPwfnY0JYWfboSjVwQqedJp+xgJ0AWr7rwYu0AFmcBaLQ0nYGmAGeE9X9a kzRktMZLLUD3nwwoCXu+1CVurDvxj9emeqJMagTE= X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on vps.pmeerw.net X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.1 Received: from vps.pmeerw.net (ns.pmeerw.net [IPv6:2001:1b60:2:23:1033:103:0:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pmeerw@pmeerw.net) by ns.pmeerw.net (Postfix) with ESMTPSA id 73CE5E00E4; Mon, 4 Jun 2018 23:34:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pmeerw.net; s=mail; t=1528148046; bh=odJiebNKjdnpKqO9Iw9VBzT2Y5jeu7U6Gll0rqGN4I8=; h=From:To:Cc:Subject:Date:From; b=EKrC8Wib92pN54wVerZF2uOX8PV22QubqEWGbikKoxJyAh3/JJQgU/UQVOOX4Gyxl FmTaS/bToTmq/ndU8j7vZDAzDbnkMv/CqsFKbZPLfXkK2X6raJ8maafCmOx9JYB6c0 cuTs3gS33i3xHWXBI02f7MY7gzYizDelQQKVfYWQ= From: Peter Meerwald-Stadler To: Johannes Berg Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Meerwald-Stadler Subject: [PATCH] rfkill: Fixes and cleanup of header file Date: Mon, 4 Jun 2018 23:34:06 +0200 Message-Id: <20180604213406.31016-1-pmeerw@pmeerw.net> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes kerneldoc parameter names to match implementation, rfkill_set_hw_state(), rfkill_set_sw_state(). Fix description of rfkill_resume_polling(). Fix typos in documentation of rfkill_find_type(). Consistently start kerneldoc description with uppercase letter. Signed-off-by: Peter Meerwald-Stadler --- include/linux/rfkill.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h index e6a0031d1b1f..8ad2487a86d5 100644 --- a/include/linux/rfkill.h +++ b/include/linux/rfkill.h @@ -66,7 +66,7 @@ struct rfkill_ops { #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) /** - * rfkill_alloc - allocate rfkill structure + * rfkill_alloc - Allocate rfkill structure * @name: name of the struct -- the string is not copied internally * @parent: device that has rf switch on it * @type: type of the switch (RFKILL_TYPE_*) @@ -112,7 +112,7 @@ void rfkill_pause_polling(struct rfkill *rfkill); /** * rfkill_resume_polling(struct rfkill *rfkill) * - * Pause polling -- say transmitter is off for other reasons. + * Resume polling * NOTE: not necessary for suspend/resume -- in that case the * core stops polling anyway */ @@ -130,7 +130,7 @@ void rfkill_resume_polling(struct rfkill *rfkill); void rfkill_unregister(struct rfkill *rfkill); /** - * rfkill_destroy - free rfkill structure + * rfkill_destroy - Free rfkill structure * @rfkill: rfkill structure to be destroyed * * Destroys the rfkill structure. @@ -140,7 +140,7 @@ void rfkill_destroy(struct rfkill *rfkill); /** * rfkill_set_hw_state - Set the internal rfkill hardware block state * @rfkill: pointer to the rfkill class to modify. - * @state: the current hardware block state to set + * @blocked: the current hardware block state to set * * rfkill drivers that get events when the hard-blocked state changes * use this function to notify the rfkill core (and through that also @@ -161,7 +161,7 @@ bool rfkill_set_hw_state(struct rfkill *rfkill, bool blocked); /** * rfkill_set_sw_state - Set the internal rfkill software block state * @rfkill: pointer to the rfkill class to modify. - * @state: the current software block state to set + * @blocked: the current software block state to set * * rfkill drivers that get events when the soft-blocked state changes * (yes, some platforms directly act on input but allow changing again) @@ -183,7 +183,7 @@ bool rfkill_set_sw_state(struct rfkill *rfkill, bool blocked); /** * rfkill_init_sw_state - Initialize persistent software block state * @rfkill: pointer to the rfkill class to modify. - * @state: the current software block state to set + * @blocked: the current software block state to set * * rfkill drivers that preserve their software block state over power off * use this function to notify the rfkill core (and through that also @@ -208,17 +208,17 @@ void rfkill_init_sw_state(struct rfkill *rfkill, bool blocked); void rfkill_set_states(struct rfkill *rfkill, bool sw, bool hw); /** - * rfkill_blocked - query rfkill block + * rfkill_blocked - Query rfkill block state * * @rfkill: rfkill struct to query */ bool rfkill_blocked(struct rfkill *rfkill); /** - * rfkill_find_type - Helpper for finding rfkill type by name + * rfkill_find_type - Helper for finding rfkill type by name * @name: the name of the type * - * Returns enum rfkill_type that conrresponds the name. + * Returns enum rfkill_type that corresponds to the name. */ enum rfkill_type rfkill_find_type(const char *name); @@ -296,7 +296,7 @@ static inline enum rfkill_type rfkill_find_type(const char *name) const char *rfkill_get_led_trigger_name(struct rfkill *rfkill); /** - * rfkill_set_led_trigger_name -- set the LED trigger name + * rfkill_set_led_trigger_name - Set the LED trigger name * @rfkill: rfkill struct * @name: LED trigger name * -- 2.11.0