Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3325722rwj; Mon, 19 Dec 2022 16:51:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf6/1xuQpalMKmHCdRMhsgh81Ot1OGERFQWO1K/85ANNFCengfRA+ig6Z6oET9nzbamVBtAl X-Received: by 2002:a17:907:20ce:b0:7c1:6344:845 with SMTP id qq14-20020a17090720ce00b007c163440845mr30032383ejb.34.1671497494788; Mon, 19 Dec 2022 16:51:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671497494; cv=none; d=google.com; s=arc-20160816; b=rPC0fdRPRNtTz9c9Zo/fcETzRqs95vz7puFggg4CRej74wkd6MBkB/stea4whWFLoN 6jSaG+liaapUcFxvILkllRMhngsVJVp9H/vP66ihuedF541dWbwU78iUrVQoE4hMGbSA rWeE7UpENggo+703vt4j3uUcLd7kmps/5SXqyxU3RFrhboXBos0Z5GZRJijLZ1ZCVF6e xSY4i5mcA5011svp59ECbk0jbz8ZcxwcnXlUkvZ5jRrbmEpL3fp9Adbm1UOAHxykMuGV KnlT+/q0Bh+jcxl/2Cmg+e2VyJIfv9SLb8vZl9JuDAEc3MRhph1VamEuuPrjVDH+NDzL Y3gQ== 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 :dkim-signature; bh=LJMGVx/c3dHDkaRWc2L4bcsVUSNNmncwpOKzTe9TVL4=; b=epxgxx/TmhruwsVec9qEEEhQEXWFdEc6xrawq6ui0rFrSWlymNmkGEi8B9Eph4r+uz 3Q50hyDHYK265T871s2ZBSM9Wg378Myho0fdWY37uO2jpDa/+AheJ3tgzL0bU8ZR5eE5 H6odSJA/a8IUp9Ob0qF+Etz3aLVo7ChlfSBrBPNx3h/c1IzHyuYNzY/J24WwQZKgytJu UG3IaPZkUOFye3kJQQIRUY+zd6+3h6udXPtm7O64L/OxoyAYyKb8v7s3XAlbSp21KdX4 1sYuCIcv1w1wh1sYdRt0R5oIeGpDcoItkhxuzTiNdS6wbpBxEw9IinIo521i9e4tEmNY 0ogA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@criticallink.com header.s=google header.b=Ofzaz35l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=criticallink.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u8-20020a1709063b8800b007c19a717e70si5988662ejf.964.2022.12.19.16.51.18; Mon, 19 Dec 2022 16:51:34 -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=@criticallink.com header.s=google header.b=Ofzaz35l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=criticallink.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232822AbiLTAF7 (ORCPT + 71 others); Mon, 19 Dec 2022 19:05:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232577AbiLTAFr (ORCPT ); Mon, 19 Dec 2022 19:05:47 -0500 Received: from mail-vk1-xa34.google.com (mail-vk1-xa34.google.com [IPv6:2607:f8b0:4864:20::a34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75FD128D for ; Mon, 19 Dec 2022 16:05:45 -0800 (PST) Received: by mail-vk1-xa34.google.com with SMTP id t191so5066356vkb.4 for ; Mon, 19 Dec 2022 16:05:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=criticallink.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LJMGVx/c3dHDkaRWc2L4bcsVUSNNmncwpOKzTe9TVL4=; b=Ofzaz35lynvdnSiVHvcRnf9yKy6m1B644SLmuzdMMIXjSlGONBbNGyWZxmhelAA821 9Gkgbwj3AWCKPYaeEHqgFJzszxBDUeRSRog7ByMZTfLlfcC37gU2gaZ7SDNKkVCRJ/hq QiM8yeOQx4LSCfWYiW5RjGQEVznzRaYzfzkKRfZnmyj/oT3pJDxW3q3LZRxxMlEsZCww qUnkB3k5fttcGXz5zP2sITuTrE51/15enY8Ed7LHYGbmXlEwJqKBDtuTveAsMAAr7Yu6 Z7r2qQdeLMqvROT02KT1SzpkFTmXV/K4JHfSafNb+3z6AKGeCLJfLncE77xCJ2mOoKEI xffg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LJMGVx/c3dHDkaRWc2L4bcsVUSNNmncwpOKzTe9TVL4=; b=kGfvBQQtZccl/Dle3vMh2KbTDzDlQcIVIHwee7lvfiIrRGk+oMAEy/PHyQEUwl1G4v cyD/EIvQgpQOaTG9VEiZ3KlqLlFcRIS3sQeVeChGzjftqQBTsuNz3ja6RuHAue2k5+r7 Ot5VTWrQdos3c36sKraEmftpM/2Ew7J7j1nfyGHdcPiBoUuBmLybIGKUpQgwIECY3D5k oEv1wNX4QuIv9YK6Bscyey5v4AuykjYEag3vgkYc0CiWajAJ6gvBVQrcTOGo8mf3wMNW 1Ayat+33s1pfti6zB3CYKwV3KgykjZVT8B0QKHaMLWL3FmSWyLR5ipdvn/GZhFiJZuw0 vHzw== X-Gm-Message-State: AFqh2krEmsPC+isTgc81Nai6LGhsolIRM6gjVjulMP3FO7m4gTE7Mdu8 T/K22Q0O5m3tz9YReBvqcMDdQA== X-Received: by 2002:a05:6122:45d:b0:3c6:bdf4:695b with SMTP id f29-20020a056122045d00b003c6bdf4695bmr9378658vkk.5.1671494744542; Mon, 19 Dec 2022 16:05:44 -0800 (PST) Received: from jcormier-MS-7A93.syr.criticallink.com (static-72-90-70-109.syrcny.fios.verizon.net. [72.90.70.109]) by smtp.gmail.com with ESMTPSA id o70-20020a374149000000b006e702033b15sm7721430qka.66.2022.12.19.16.05.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 16:05:44 -0800 (PST) From: "Cormier, Jonathan" To: linux-hwmon@vger.kernel.org Cc: "Cormier, Jonathan" , Jean Delvare , Guenter Roeck , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Bob Duke , John Pruitt Subject: [PATCH v2 2/4] hwmon: ltc2945: Add devicetree match table Date: Mon, 19 Dec 2022 19:04:55 -0500 Message-Id: <20221220000457.1163446-3-jcormier@criticallink.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221220000457.1163446-1-jcormier@criticallink.com> References: <20221214220727.1350784-1-jcormier@criticallink.com> <20221220000457.1163446-1-jcormier@criticallink.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Signed-off-by: "Cormier, Jonathan" --- drivers/hwmon/ltc2945.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/ltc2945.c b/drivers/hwmon/ltc2945.c index 9adebb59f604..9af3e3821152 100644 --- a/drivers/hwmon/ltc2945.c +++ b/drivers/hwmon/ltc2945.c @@ -58,6 +58,12 @@ #define CONTROL_MULT_SELECT (1 << 0) #define CONTROL_TEST_MODE (1 << 4) +static const struct of_device_id __maybe_unused ltc2945_of_match[] = { + { .compatible = "adi,ltc2945" }, + { } +}; +MODULE_DEVICE_TABLE(of, ltc2945_of_match); + static inline bool is_power_reg(u8 reg) { return reg < LTC2945_SENSE_H; @@ -475,8 +481,9 @@ MODULE_DEVICE_TABLE(i2c, ltc2945_id); static struct i2c_driver ltc2945_driver = { .driver = { - .name = "ltc2945", - }, + .name = "ltc2945", + .of_match_table = of_match_ptr(ltc2945_of_match), + }, .probe_new = ltc2945_probe, .id_table = ltc2945_id, }; -- 2.25.1