From patchwork Mon Sep 25 12:29:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoniu Miclaus X-Patchwork-Id: 144406 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp1175350vqu; Mon, 25 Sep 2023 05:33:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfm3p3OxVKj1TXT5S6LPQX62h4VgrDD46ve7meqkTrhnzRB73P+ctUC0rAmVIJDC570Bch X-Received: by 2002:a05:6a20:6a04:b0:152:6b63:f1e7 with SMTP id p4-20020a056a206a0400b001526b63f1e7mr5650955pzk.1.1695645233203; Mon, 25 Sep 2023 05:33:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695645233; cv=none; d=google.com; s=arc-20160816; b=rZ6o246R+DEsVwjwxsI9NRh9Hl5P7jEQpZPuDkCQlvqPjydoj8n5WW6baqqqf14+bZ gN0hyc7n8su5vF9SCjy/htwVo2VZYFCvg/P+NNdIENIb2dazYq2F3JA73wHP1xM/oio5 lQb4tq0WyVFhkZj8oiqx5gDUjIIz08T6j4CSwdbwQZ0ZQNfHHScpvCt6CtjxmzrUlhGM yHQhDaKPFGW2o2tgqVXpZSBD4sJT6AFIsXZfj1DGYEFyXQwGNclQhm+Ol/PFCKCp5XSn nWQkn/0RafXqOga5rUC2JGnHEtnBWlpZholDq1qLwVgFUOaph85T+paGRsZ6C8UuqPXG l3ww== 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=gJrJcZ3a+OvPfIGTyNLLaetruhsG+mVz447PvpqncE0=; fh=m3G6b9HTlEUeK6MzNKsIrfbAat186gTt6liSoNY6ZIE=; b=MgQgk882gYqrcJ+KILseBkeCgsRe37EWaladbImz4mFvrG0rpeHpYC7+PtT3+oUTWH p14uEqKntj5eyB9U3FwXuDg04iphwxcrFdUO3PmotBsTS5QvkO4n6IlnNdVB+gnPlmda M4+cVXVATtqNH0X603I28o9kpDA7S7QnofB05D3BAKP0LJ3KRBE4MWGiqV5HaE5Jftfc 36/zuI60th0KeO7egXWVTyEaj15SeWdGFsMv6uHmMRkOaCvNlLk9GMSyHKZ5myLDr8Yt JGZ9vSYErm0KRzjl0R7fBx6373H2LXq5AKX+uBN48M0TnqGJfAMJgy924LhLRuPskY4g 1g4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id u18-20020a170903309200b001b9e9b21249si9212509plc.649.2023.09.25.05.33.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 05:33:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id F100C801C1DB; Mon, 25 Sep 2023 05:30:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231521AbjIYMaU (ORCPT + 29 others); Mon, 25 Sep 2023 08:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjIYMaS (ORCPT ); Mon, 25 Sep 2023 08:30:18 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC510C0; Mon, 25 Sep 2023 05:30:12 -0700 (PDT) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 38PBObSo027417; Mon, 25 Sep 2023 08:29:56 -0400 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3tad5feqd3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Sep 2023 08:29:55 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 38PCTss9063111 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 25 Sep 2023 08:29:54 -0400 Received: from ASHBCASHYB4.ad.analog.com (10.64.17.132) 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; Mon, 25 Sep 2023 08:29:53 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB4.ad.analog.com (10.64.17.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 25 Sep 2023 08:29:53 -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; Mon, 25 Sep 2023 08:29:53 -0400 Received: from amiclaus-VirtualBox.ad.analog.com (AMICLAUS-L02.ad.analog.com [10.48.65.172]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 38PCTfV2020584; Mon, 25 Sep 2023 08:29:44 -0400 From: Antoniu Miclaus To: Daniel Matyas , Jean Delvare , Guenter Roeck , , CC: Antoniu Miclaus Subject: [PATCH v4] drivers: hwmon: max31827: handle vref regulator Date: Mon, 25 Sep 2023 15:29:28 +0300 Message-ID: <20230925122929.10610-1-antoniu.miclaus@analog.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: OaQ_Y4r6A72vnxIVElSJQH4IrUSTg87U X-Proofpoint-ORIG-GUID: OaQ_Y4r6A72vnxIVElSJQH4IrUSTg87U X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-25_08,2023-09-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 phishscore=0 lowpriorityscore=0 mlxscore=0 malwarescore=0 impostorscore=0 suspectscore=0 spamscore=0 mlxlogscore=757 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2309180000 definitions=main-2309250093 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 05:30:26 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777997539463530850 X-GMAIL-MSGID: 1778012896532109326 Add missing implementation for the max31827 supply regulator. This is a hardware required property that is not handled. Signed-off-by: Antoniu Miclaus --- changes in v4: - remove "vref" from the dev_err_probe string. drivers/hwmon/max31827.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/hwmon/max31827.c b/drivers/hwmon/max31827.c index 602f4e4f81ff..0508b020a408 100644 --- a/drivers/hwmon/max31827.c +++ b/drivers/hwmon/max31827.c @@ -427,6 +427,10 @@ static int max31827_probe(struct i2c_client *client) return dev_err_probe(dev, PTR_ERR(st->regmap), "Failed to allocate regmap.\n"); + err = devm_regulator_get_enable(dev, "vref"); + if (err) + return dev_err_probe(dev, err, "failed to enable regulator\n"); + err = max31827_init_client(st); if (err) return err;