Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2603510pxb; Sat, 6 Feb 2021 01:57:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVA4tsr7vNuxee64pzNRZGvFSPOONHidgMypVBXwdqqjAnG5nCXXj5q7gBt/z4p4g+cTOf X-Received: by 2002:aa7:d656:: with SMTP id v22mr7701118edr.349.1612605432900; Sat, 06 Feb 2021 01:57:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612605432; cv=none; d=google.com; s=arc-20160816; b=a66ArIRCDqZ4RrYElH/tW/4Rzpr52aABO4ASHQjJUpn08HdiMY6yvmPv6wTDtrwLXf tylaCF2msWZtyvOhwk2Gvr3v/RUOlVq9dAE7R9gGxoNcSRpHhwKZOA92QrmJ25hYxmHn 5FJt+43o53vuLPDIyFIo8r5jts60g7okVCAOGF5UmxYCyax17mgKHGSYy4iXsgd9p2wQ uVSw16116LmBXmzVarnQVxDlz5kPo4qZBvcfr2Pe9pughwPvB0V8mwuxJ4oW1QvbIv8A fLlAE7IRox0ZTX5OEwQDzjYBx1xIGqZG720PkEgnFFa8GYCCbe19OwmOTj8zhK+sjs4H 60SA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ciIUuMJi90vZwopC+zfnyANZfaJN/GEWGqF1EGp05is=; b=rH4RhKdN7b3h5FDRJb6JpKuK1W0aQkm7nmlnRobSXHknIMuwREzq/DSHUmrGTCjduC SGaR61jq+ymlSURrEqDY2mQgbZwI6SpM7grvzfJs2IwXXvLnPWdXwMTkxr4QWpJ2Yfdo 5TpwwoE/w8KejrlNHtlmANImWdbhaBwDAjXaUp5Gx8q4lPAIOWdHg6rFz0tRbxmb57iX CcmbS0BRk63Zhqeap9JLWw+65YOV1gnOfgQqav/2GtPXH51NImVJpgolztijweBmlnYe BNS8GWjIRxoeIU4pxnK6YVltmyaoV64eKgukmfLvSJoomt4fAzBipmqgCPb54+sCKtJn QWBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=msu.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si6734103edh.31.2021.02.06.01.56.48; Sat, 06 Feb 2021 01:57:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=msu.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbhBFJxd (ORCPT + 99 others); Sat, 6 Feb 2021 04:53:33 -0500 Received: from lnfm1.sai.msu.ru ([93.180.26.255]:39749 "EHLO lnfm1.sai.msu.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229590AbhBFJxH (ORCPT ); Sat, 6 Feb 2021 04:53:07 -0500 Received: from dragon.sai.msu.ru (dragon.sai.msu.ru [93.180.26.172]) by lnfm1.sai.msu.ru (8.14.1/8.12.8) with ESMTP id 1169pesx029777; Sat, 6 Feb 2021 12:51:45 +0300 Received: from oak.local (unknown [83.167.113.121]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by dragon.sai.msu.ru (Postfix) with ESMTPSA id 807601CDFD; Sat, 6 Feb 2021 12:51:41 +0300 (MSK) From: "Matwey V. Kornilov" To: Jean Delvare , Guenter Roeck , Rob Herring , linux-hwmon@vger.kernel.org (open list:HARDWARE MONITORING), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, "Matwey V. Kornilov" , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH v4 1/4] hwmon: lm75: Add lm75 to of_match list Date: Sat, 6 Feb 2021 12:51:18 +0300 Message-Id: <20210206095121.20625-2-matwey@sai.msu.ru> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210206095121.20625-1-matwey@sai.msu.ru> References: <2588ea5c-630e-6509-689d-4c8fea358e9b@roeck-us.net> <20210206095121.20625-1-matwey@sai.msu.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, many boards use just 'lm75' as a compatible string. Signed-off-by: Matwey V. Kornilov --- Documentation/devicetree/bindings/hwmon/lm75.yaml | 1 + drivers/hwmon/lm75.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/lm75.yaml b/Documentation/devicetree/bindings/hwmon/lm75.yaml index 96eed5cc7841..aec8edd1e0c6 100644 --- a/Documentation/devicetree/bindings/hwmon/lm75.yaml +++ b/Documentation/devicetree/bindings/hwmon/lm75.yaml @@ -13,6 +13,7 @@ maintainers: properties: compatible: enum: + - lm75 - adi,adt75 - dallas,ds1775 - dallas,ds75 diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index e447febd121a..08cde1c446db 100644 --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c @@ -667,6 +667,10 @@ static const struct i2c_device_id lm75_ids[] = { MODULE_DEVICE_TABLE(i2c, lm75_ids); static const struct of_device_id __maybe_unused lm75_of_match[] = { + { + .compatible = "lm75", + .data = (void *)lm75 + }, { .compatible = "adi,adt75", .data = (void *)adt75 -- 2.26.2