Message ID | 20231031091324.23991-1-antoniu.miclaus@analog.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b90f:0:b0:403:3b70:6f57 with SMTP id t15csp105542vqg; Tue, 31 Oct 2023 02:14:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxx6WimREHcto/tFeXFgt4mcESP05BWv/dsmuwYZ1K9SLRwa1Zz2lJT2V70eHWJtepKEtN X-Received: by 2002:a05:6358:99a3:b0:168:e439:3f0c with SMTP id j35-20020a05635899a300b00168e4393f0cmr13808125rwb.15.1698743680049; Tue, 31 Oct 2023 02:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698743680; cv=none; d=google.com; s=arc-20160816; b=FrQfVARPBE2QNoSl/MT9EH/oY1eYr0V16N75OpZkVICtlHJMPbWVnDeO1kzReuAfbD zR3p//BPx8gOmPuBfSHZ0TUmw4xD2rK7TbIHLUufFObTAL2mMGBaGCRBb6t84td54+il zPHe+5fa14WS5vRN9JK40axtEz/nWumYKgjylT32rLCzG4rOFwaSP4b3/GNj5xfrYWJy ccg3OGDXuNmfxPrn2x9yqi81zXsqwV/MpZ4K+/b9ZVsubyJDKSmQuaAH7WdWx/1bBpqg g71mwUZ1388T3voS8Tlq8Qf3jHMBRW5O/FFJCW96tdjYwAAs21heebV2TcUUCNz1QRX7 4URw== 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; bh=bA+eMI2LTuTZ+f/HebQ6a8Z/Hnrq55ihZeP6IN7sCrU=; fh=m3G6b9HTlEUeK6MzNKsIrfbAat186gTt6liSoNY6ZIE=; b=VlaZoC7ZHufEcydQ5pxaKWsdQ6UcSXjp4u31/Zi+RHfvfNFiShHDSiv9wvNUaeZAKE dgO/LzRLpcTXyxehjr/NmUJxGWLsCCHOmPMleL01DojbIx1bMWBOwiAwrJNue5mDKkrg HoTrjocB48DHjQgvAgIW+lsqxkrXhhFZl8mvMfMVOZ96HxIKwOXqowquldvRySVhQ5k8 DJjO5fsMQeACgv5+40SGFnHQJ8b5w3EQwv6w/4nf1m5t282qRRrKmInc6lmXl1Z8JvWa Hel8h15GGpIFsqjCGAgYDGAJ7QwMZFDG93/5Q1Xz52ouMJ2tXklM0Qx1TSVbql78uZ/D 158g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id a27-20020a63705b000000b0059d48c43152si774533pgn.40.2023.10.31.02.14.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 02:14:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8FC8C80A8016; Tue, 31 Oct 2023 02:14:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343793AbjJaJOZ (ORCPT <rfc822;gah0developer@gmail.com> + 34 others); Tue, 31 Oct 2023 05:14:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343706AbjJaJOY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 31 Oct 2023 05:14:24 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 223D1C1; Tue, 31 Oct 2023 02:14:22 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 39V83TgI021735; Tue, 31 Oct 2023 05:14:07 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3u1f5hwuc1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 31 Oct 2023 05:14:06 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 39V9E5fl038412 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 31 Oct 2023 05:14:05 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Tue, 31 Oct 2023 05:14:04 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Tue, 31 Oct 2023 05:14:04 -0400 Received: from amiclaus-VirtualBox.ad.analog.com (AMICLAUS-L02.ad.analog.com [10.48.65.145]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 39V9DqZq023053; Tue, 31 Oct 2023 05:13:55 -0400 From: Antoniu Miclaus <antoniu.miclaus@analog.com> To: Daniel Matyas <daniel.matyas@analog.com>, Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, <linux-hwmon@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: Antoniu Miclaus <antoniu.miclaus@analog.com> Subject: [PATCH] hwmon: max31827: include regulator header Date: Tue, 31 Oct 2023 11:13:24 +0200 Message-ID: <20231031091324.23991-1-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: 7X88-FrYKT8avtxWljMheJjK5HLILKYl X-Proofpoint-ORIG-GUID: 7X88-FrYKT8avtxWljMheJjK5HLILKYl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-30_13,2023-10-31_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 malwarescore=0 adultscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 phishscore=0 mlxscore=0 mlxlogscore=898 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2310240000 definitions=main-2310310071 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 31 Oct 2023 02:14:37 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781261853135291272 X-GMAIL-MSGID: 1781261853135291272 |
Series |
hwmon: max31827: include regulator header
|
|
Commit Message
Antoniu Miclaus
Oct. 31, 2023, 9:13 a.m. UTC
Include `linux/regulator/consumer.h` since the driver is using
`devm_regulator_get_enable` function.
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
drivers/hwmon/max31827.c | 1 +
1 file changed, 1 insertion(+)
Comments
On Tue, Oct 31, 2023 at 11:13:24AM +0200, Antoniu Miclaus wrote: > Include `linux/regulator/consumer.h` since the driver is using > `devm_regulator_get_enable` function. > > Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> Applied. Thanks, Guenter > --- > drivers/hwmon/max31827.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/hwmon/max31827.c b/drivers/hwmon/max31827.c > index 0508b020a408..b29f25321dc4 100644 > --- a/drivers/hwmon/max31827.c > +++ b/drivers/hwmon/max31827.c > @@ -12,6 +12,7 @@ > #include <linux/i2c.h> > #include <linux/mutex.h> > #include <linux/regmap.h> > +#include <linux/regulator/consumer.h> > > #define MAX31827_T_REG 0x0 > #define MAX31827_CONFIGURATION_REG 0x2
diff --git a/drivers/hwmon/max31827.c b/drivers/hwmon/max31827.c index 0508b020a408..b29f25321dc4 100644 --- a/drivers/hwmon/max31827.c +++ b/drivers/hwmon/max31827.c @@ -12,6 +12,7 @@ #include <linux/i2c.h> #include <linux/mutex.h> #include <linux/regmap.h> +#include <linux/regulator/consumer.h> #define MAX31827_T_REG 0x0 #define MAX31827_CONFIGURATION_REG 0x2