From patchwork Fri Jan 13 06:45:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 43039 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp123559wrt; Thu, 12 Jan 2023 23:01:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXvZfVe0OXfPepIbt+pfB6UD4ENDty0wPsDDwVnElsAV3SASoM0/7tkAycRfhlpx9d++JuBO X-Received: by 2002:a17:906:2842:b0:7c0:cc69:571b with SMTP id s2-20020a170906284200b007c0cc69571bmr59749218ejc.8.1673593309667; Thu, 12 Jan 2023 23:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673593309; cv=none; d=google.com; s=arc-20160816; b=xY+FR/Lwb6MLtFxP8wGNw4erS0izt0quF6TySWVrUHw6IpFCvXj6xJ90XvLOgItZg2 lDkAvLCplamsMctDy9bjJBJ0dbrdNLCCyQQGumQsmO//2SjIuApQBFIq0io7zySFLxn9 lz0hKugortVOLVBKHK/XvOR2H88nf+Y+EzEjQJ2CfNbJyQnztA6F5N8sqt0i9MjSwep3 HlmsySwe74CfY8WGWeBTHouOMJpbCo4ab9+nj4uhGEf3MpmtAZ9hVIl0sANN6CxvDEwz ovZtGQlp1Z0Lywd6AavkFiAC3ygpMtf5SkyjZupHaHfQkGqWqjPx8GI23eyqf7AYmnPJ cdrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MmWO9HI/fqEBVN+B802vvmSHYfQAKEOqu/eZMK0viVI=; b=jcpuy/LibnZwt60BgBUXM1ASAzCDuENeG1iafYIx7j3u9EwibLFnEl3FimzuWzHHFN MNTz9Nnsf5a2uFfILzGlIoStIyZbc1TxsBu8tsI9G2C1ju5IFth28le10DyWGG3jbgEp fEPqYWWjUOYtHkcdzBXdQ3fa60yN2EHUkZdmzjnyimBiSxmgGEvM392peN0NtdIl6+Pa lwZaFKjnxSY2jJJZ3I5EB7XdyMvw6Ksr8jQmM5rRDjwlaPWt84BY5OnPCHFSjoZ3Q0kH 0jiRmOqLwy/ai5fJSLDV8mc4P5zSFNaj6dw35BTxWIpXa2ohC6QK8RS4o6VgfGbXGSvh tnfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1uCHAczl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk32-20020a1709077fa000b007ae83c51922si19943175ejc.45.2023.01.12.23.01.21; Thu, 12 Jan 2023 23:01:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1uCHAczl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240956AbjAMHAq (ORCPT + 99 others); Fri, 13 Jan 2023 02:00:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241097AbjAMG7g (ORCPT ); Fri, 13 Jan 2023 01:59:36 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24718235; Thu, 12 Jan 2023 22:45:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=MmWO9HI/fqEBVN+B802vvmSHYfQAKEOqu/eZMK0viVI=; b=1uCHAczluEigvg/9GbYT3i7R8y ArTnj5v+tWDuLLTd2kT5UVAV/vTSIhCRq+trNvfA8VzmlcZtSJVLANTzg6rXZtHERpS4sEw9YfojZ ho4YVDpT9VDbjoAm5IGpHW2QiPCR/55JI4mF6zUCRk1kh0+tfCefabumyRqJzK1fB5XAmKssHos37 RhSLO/UEzmCv3eYeA50V4WgU73L/OrUs4vTu2K2IY4uk7zJSGGAkHiayCQK+RmHTf0Vemq9K56tTq WYFtr9WWJDFbkct+tyvapp+yrVNmjYsMdFLfOYy1Zb0nuISvq1NNo5qqHtriChBIMdjCxeO5xgCA4 8TQwZFfQ==; Received: from [2601:1c2:d80:3110::9307] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pGDp7-000sPw-FO; Fri, 13 Jan 2023 06:45:57 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Subject: [PATCH] hwmon: (sht15,sht21) fix kernel-doc warnings Date: Thu, 12 Jan 2023 22:45:56 -0800 Message-Id: <20230113064556.21685-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754889778027265620?= X-GMAIL-MSGID: =?utf-8?q?1754889778027265620?= Use the correct function names in kernel-doc comments to prevent these warnings: drivers/hwmon/sht15.c:682: warning: expecting prototype for sht15_show_status(). Prototype was for sht15_status_show() instead drivers/hwmon/sht15.c:705: warning: expecting prototype for sht15_store_heater(). Prototype was for sht15_status_store() instead drivers/hwmon/sht15.c:738: warning: expecting prototype for sht15_show_temp(). Prototype was for sht15_temp_show() instead drivers/hwmon/sht15.c:760: warning: expecting prototype for sht15_show_humidity(). Prototype was for sht15_humidity_show() instead drivers/hwmon/sht21.c:128: warning: expecting prototype for sht21_show_temperature(). Prototype was for sht21_temperature_show() instead drivers/hwmon/sht21.c:149: warning: expecting prototype for sht21_show_humidity(). Prototype was for sht21_humidity_show() instead Signed-off-by: Randy Dunlap Cc: Jean Delvare Cc: Guenter Roeck Cc: linux-hwmon@vger.kernel.org --- drivers/hwmon/sht15.c | 8 ++++---- drivers/hwmon/sht21.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff -- a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c --- a/drivers/hwmon/sht15.c +++ b/drivers/hwmon/sht15.c @@ -668,7 +668,7 @@ static inline int sht15_calc_humid(struc } /** - * sht15_show_status() - show status information in sysfs + * sht15_status_show() - show status information in sysfs * @dev: device. * @attr: device attribute. * @buf: sysfs buffer where information is written to. @@ -690,7 +690,7 @@ static ssize_t sht15_status_show(struct } /** - * sht15_store_heater() - change heater state via sysfs + * sht15_status_store() - change heater state via sysfs * @dev: device. * @attr: device attribute. * @buf: sysfs buffer to read the new heater state from. @@ -725,7 +725,7 @@ static ssize_t sht15_status_store(struct } /** - * sht15_show_temp() - show temperature measurement value in sysfs + * sht15_temp_show() - show temperature measurement value in sysfs * @dev: device. * @attr: device attribute. * @buf: sysfs buffer where measurement values are written to. @@ -747,7 +747,7 @@ static ssize_t sht15_temp_show(struct de } /** - * sht15_show_humidity() - show humidity measurement value in sysfs + * sht15_humidity_show() - show humidity measurement value in sysfs * @dev: device. * @attr: device attribute. * @buf: sysfs buffer where measurement values are written to. diff -- a/drivers/hwmon/sht21.c b/drivers/hwmon/sht21.c --- a/drivers/hwmon/sht21.c +++ b/drivers/hwmon/sht21.c @@ -114,7 +114,7 @@ out: } /** - * sht21_show_temperature() - show temperature measurement value in sysfs + * sht21_temperature_show() - show temperature measurement value in sysfs * @dev: device * @attr: device attribute * @buf: sysfs buffer (PAGE_SIZE) where measurement values are written to @@ -136,7 +136,7 @@ static ssize_t sht21_temperature_show(st } /** - * sht21_show_humidity() - show humidity measurement value in sysfs + * sht21_humidity_show() - show humidity measurement value in sysfs * @dev: device * @attr: device attribute * @buf: sysfs buffer (PAGE_SIZE) where measurement values are written to