Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp543383rdg; Thu, 12 Oct 2023 13:07:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEP6Wm7bWF65z5ftna+JuLEKE2h36piSfuToMFYFSePFN+fuWSKKlcwasqG1fHf9nUIWs5 X-Received: by 2002:a05:6871:8a8:b0:1e9:bda8:ba79 with SMTP id r40-20020a05687108a800b001e9bda8ba79mr3077565oaq.27.1697141253396; Thu, 12 Oct 2023 13:07:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697141253; cv=none; d=google.com; s=arc-20160816; b=cni4Q3GixDPXrF6/kZ/LWwFxSExYb/s9HriD0PIjdb/omS+OdP+NPjIow+cXE+2/kN 72S8dDbyHGjXtyeZGurgXjH6BNIf1sPY2yV0avaHzHeDGSRxvcw9MJiKdWzijPTARLiP RVKeXjWM7jnWTYy6rVsJLeUqPD0Wb4fB8QwA+1I35/Ai2zHuX1wddmMKq9PtA0fC7oBm qDuS3hrf++y8izcOGfdiYcYmzUO5rOCgmmjAsnWCaEDHqOwlj1R+2oosdXfyCo0vfe55 KLzPXY3ZIlaz6XkIP360G+YuqA2PFclmdiGXY9k3a1kg+JWl+b4eDVXchGGMnZXmogYE NnMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=SBn3G0nuwV1PB65M5Moci3sn5s/1LPXofHRirIrGVQ4=; fh=zmDZN4wPpkDHg2r84CV/ob5UKTRkzSZpZzEhI4upcSU=; b=TZqOI2nPo3PgTC7trSGzACUmzwgN4Hu1+PqGVs0/ThATn4LKHY16Fg2dlBpY3L4wDL ggF/m/e3cQ1ugo5/BjqxUVImL8paIr8ZDZN6DHXslu79lO5AUy9TqIGuXGLEj6IseXZv Je8cZwW3l8c/zTLaSaiO8u/QGTvPYRUaB9f7U36zVmcwvMpmUDJxPKIZLEAOHvQd2vPk Vhyg7srLxSScXyiW2z0yB4YP9pE4WcqyCufSAXXmRgpiksB4+giIpz6lbbqHm6X6CYGv Xyyr22IkZdzRnoLOBuKC6j4s4NI58gm70NRzKrE3o66KLpsoiV0uiHiR+wmWGMu9qMlt i8kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QSkhqgUq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id u24-20020a63b558000000b00565eb0cf702si2958474pgo.310.2023.10.12.13.07.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 13:07:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QSkhqgUq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C89B981D55C2; Thu, 12 Oct 2023 13:07:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442682AbjJLUHR (ORCPT + 99 others); Thu, 12 Oct 2023 16:07:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442668AbjJLUHO (ORCPT ); Thu, 12 Oct 2023 16:07:14 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84990BB; Thu, 12 Oct 2023 13:07:13 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-406609df1a6so14879555e9.3; Thu, 12 Oct 2023 13:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697141231; x=1697746031; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=SBn3G0nuwV1PB65M5Moci3sn5s/1LPXofHRirIrGVQ4=; b=QSkhqgUq7i8qbXWEOQCZkMJV+xvZRIZX5SGurRWcrvA7EHxcSpm90TvjlmP88mk9iF WBkTwx0brfwgsbVqeYbnuGd17V5b+NwtlR+QU5ovA1XTmD7RJlyofFAFSaK13MeKYnjv OFxxkDuZeMjv6uGwYOPwSNLUhDzBGbJM5Pf2dMS4EOZqhqSqrMuLc3RgBQNKAPoJwovm J+0u6CfmI3+9FGisMRN8F00M9tWXwWGykomwIvxjU8n4C8Dz3zn+jCMYBTETO8gzDvgz NJtJerKoCm8YAfbSgw0i6fHmzxFMUWKaTd/PkoUYmAyLPpOomJeUjpJSuiNf0liuX/j4 Xm6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697141231; x=1697746031; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SBn3G0nuwV1PB65M5Moci3sn5s/1LPXofHRirIrGVQ4=; b=neKuV2PBQU3vfuIGu5CnHjHiejC+NHnZU7FjFQqyFUKc3Gai9mc8r2DY9GK92PbhOF iDFdhOcoiWxjz8ecJRAo30XFDDRufwCMGWZd24kzav3LsTB7iWlMLhgQDRQRjCSQsJ8y 21BKiEvyDVOLOUazOQo8+bKIqIT9h2/DQ5wdiIuUmW9IRqfxyfcAhIiAQbn1Dokddq5q CGMZhpugcxDZcAqVuDy83j7qFtZQBourNcVrfzsMLj4excsA7cIh9B41r2umQJ7rZsUw FvjO99E/3U4z/EOB5nxNq1zEAJR9YMtmeN8ZExzEhdEc0jCShz5/KxyDY9KYUtgftEOn kLzA== X-Gm-Message-State: AOJu0YybixF6wgR4ROO2daxaZbNzzNiZuRQ4xKD+M9Pt1z5CKdeNn/2G 2NhKlYVb4PXhhrLw6h1Xo8gCMwbw+fUHMw== X-Received: by 2002:a05:600c:21d0:b0:405:3a3b:2aa2 with SMTP id x16-20020a05600c21d000b004053a3b2aa2mr21670636wmj.37.1697141231587; Thu, 12 Oct 2023 13:07:11 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-de42-73c9-6d1f-dd27.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:de42:73c9:6d1f:dd27]) by smtp.gmail.com with ESMTPSA id p7-20020a056000018700b003217cbab88bsm182093wrx.16.2023.10.12.13.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 13:07:11 -0700 (PDT) From: Javier Carrasco Date: Thu, 12 Oct 2023 22:07:07 +0200 Subject: [PATCH 1/2] iio: si7005: Add device tree support MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231012-topic-si7005_devicetree-v1-1-6c8a6fa7b3ec@gmail.com> References: <20231012-topic-si7005_devicetree-v1-0-6c8a6fa7b3ec@gmail.com> In-Reply-To: <20231012-topic-si7005_devicetree-v1-0-6c8a6fa7b3ec@gmail.com> To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1697141229; l=909; i=javier.carrasco.cruz@gmail.com; s=20230509; h=from:subject:message-id; bh=aeSCiAYO0RYYWNlf/LcMpE5mp3Kcd3T3YEwutYopSek=; b=tbw7jQAKEHNLisGF9BF1nVxEGCtfiT1Mbh+tw9OAww90loHfBO8jsOhGIdxB6b0BTfamfOHey Ih6SWU4TTP7AX6sONNLVla5fdWCiZ98qTcDCTIHYW3ZZn1JnGWafAyP X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 12 Oct 2023 13:07:29 -0700 (PDT) This device supports ACPI detection but lacks of the device tree counterpart. Add device tree support. Signed-off-by: Javier Carrasco --- drivers/iio/humidity/si7005.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/iio/humidity/si7005.c b/drivers/iio/humidity/si7005.c index ebfb79bc9edc..9465908cc65e 100644 --- a/drivers/iio/humidity/si7005.c +++ b/drivers/iio/humidity/si7005.c @@ -169,9 +169,16 @@ static const struct i2c_device_id si7005_id[] = { }; MODULE_DEVICE_TABLE(i2c, si7005_id); +static const struct of_device_id si7005_dt_ids[] = { + { .compatible = "silabs,si7005" }, + { } +}; +MODULE_DEVICE_TABLE(of, si7005_dt_ids); + static struct i2c_driver si7005_driver = { .driver = { .name = "si7005", + .of_match_table = si7005_dt_ids, }, .probe = si7005_probe, .id_table = si7005_id, -- 2.39.2