From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C1184EC671 for ; Tue, 13 Oct 2026 11:21:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791890514; cv=none; b=Y0z3RqrZ5/fHrX4dxlx7xh8d/+WnLgUIi7gxHfwG/y2FXVDHJeibt3IjR++BeI/tkja+LvLO1EPgZePSFPYGX5pclQQN2b2GWY5P77DH7hVDWuJojWpoMyhHwRydbruzY54Jbg0ZhFDk21Tl2s8iqFXf0r9E+hGX8r5d8b2a8uY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791890514; c=relaxed/simple; bh=zMbMI1iPl24pAs5T/eaw5EOzPDqLoofRmlKw9qDv1E4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QI94fXRjGvX6oq07W+3AhPflaYsVqZwBm0+keVhlwcB4G9p1st660hZ+d3lMf+CZN2XHvEorsYfAvRg09zj9SIpX9jqAb2D7Jf1tMD+DZqprAGnwahz4mysa/e4iIQlfhEgiUp3yLswrPYgiz6DjRpzoy4cD0V+FDpeS4DsPBwc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=qnJuT15U; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qnJuT15U" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-5ba7ed32ccdso3288418e87.0 for ; Tue, 13 Oct 2026 04:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791890510; x=1792495310; darn=vger.kernel.org; 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:content-type; bh=9ZBikVK3qvt9tK1Q7n4ziWN1MiTDEPE8C1CFx11XlAQ=; b=qnJuT15UdlpKjiaPx3d5nfCrLJJE/t9RIbrsu/c/kWW2qqNcqM0I6WBM8PRbmqjnKG ZLfepO2z+tLY7xb4QM1CP47TvJyeiGGej3oG51Eu1U+MsW2w+wOaVQPGqS/LBb75A1PF 0SiDgoUa1VBx/s2wFvzbAFxt6dBvLDx0XVkqVyfsdfMAT0WLmYjLYsULvSx20FxVQu2i AI61lyyObXaITlRCrkid0to6x7ZtQR2oYfM6MeFNqp2mc4k4dkRUs07ulurT9l/IvW5+ pq03fKpw05m7/hhH/u4wK6zxdxxFq6Y1HmXWIJx8kejk5LE81GvnIk5PsPGlc0oVMnMS Iv6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791890510; x=1792495310; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=9ZBikVK3qvt9tK1Q7n4ziWN1MiTDEPE8C1CFx11XlAQ=; b=ibCNz4VeRp4ZFEq097hcnpkqqDmkenC7xlE7fppvPoyXnLstaWT4xHvNoMEvvTRtRj r7KlSjVrNtyIQIKISjmHrg1PoFoG6617tBRCF9iAEIHOwsDVO03yFc0z0pDa2p+YqXRa 42KKAdrkw2sbZuefLepRRfwyokh2zlfEhoL8qtiu1CVymgHopcwMuHouIQNiL6RSFpgL li3IRs/fGkJzsHL7t0tHeXabIgPyNILExHMPqIkQN6bjTksogk+4kpdinep6MimIl7ju sQmjZxNITNtXWCtQAWxluNUUmm+VV+qoEJhFV+BPvEWq7a/zQSrRvaX9UuDH0p6hlxoG qMRQ== X-Forwarded-Encrypted: i=1; AKwUvBzSdbopscs9z9dU4Bit2+sl5fLCVwwyQRrfiGFbgBofaVqFD9nzQMKhDTOXjSzdvoXkvd1XLY65mJIFMSM=@vger.kernel.org X-Gm-Message-State: AFq9FYKcpvLLjOcxQFEH+kEofHHM0OBB0jcdSxvWSVdIE70DJYyE5eZh TA2CA+zhfU4LuUv6IFbrJjJwhkAzCA/XcwiuuA3Dtz2JVm6Z6+BGvq6A X-Gm-Gg: AYBFou0mX4Tsw2k6pPFpoi+aGIrJbOmAdVwm4KSYwggE+z30z48z1uTT8UXLDAyKqzj yqB9PP1Y14r3DgA8eSqbpzMwuJNZokzka/kjJ6djFM2aKlEvnfPuzQSLN4GgPyHsjOZF5MX+0VB AiYp+sKVa55OOvZ8fup3YNuZD5NfpPK7GXKDomck4D23gtTN9DF950OuEhJdKReHnpnXxMCE2cN WSyNiOey9xDxyOGD8l1A/jYsXbpMnkmxJMtC0zwxTvC/8OcAWneIr+0hxckIiUpgD8h5iRUisDl mgzCXETDjxYXmVyQUo0JHtY6kJhsCnGwTsYjgkDd2UH6aWPUWCkF4M3ZC9aKlPnKMNp8LB296kG yO2RkbJU0vY8rAP+V+4kzpG0q462/k+2mXcHfHM5HHHYB/wK2aYXCSizCJvhq9Tud+tkxhEuDVO CcMNXD9mx/S1/t3N84y76W+Hvmg68fWVlgSIFC0u5G14rAQd4ujJA94O744YRUYf17coLd3+4nd ufS/BavkYHejwASuYDFNzFV1KqG+YfmjJargzzSDGTkMqSYgLn65Byho9CS5lNhAjs43GCLivhj OqdFB4I/WdM6Ob9XZbzGl2iPwASCHvCoPLfD5w== X-Received: by 2002:a05:6512:108c:b0:5b6:1a7c:fd8c with SMTP id 2adb3069b0e04-5bcde8cf921mr4238371e87.50.1791890509803; Tue, 13 Oct 2026 04:21:49 -0700 (PDT) Received: from M-K2012N0113010.localdomain ([88.119.128.229]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5bcf8a3970asm1116148e87.79.2026.10.13.04.21.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2026 04:21:49 -0700 (PDT) From: Paulius Zaleckas To: Jonathan Cameron , linux-iio@vger.kernel.org Cc: Eddie James , Joel Stanley , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rupesh Majhi , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Paulius Zaleckas Subject: [PATCH v2 5/6] iio: pressure: dps310: add an OF match table Date: Tue, 13 Oct 2026 14:21:23 +0300 Message-ID: <20261013112124.1878296-6-paulius.zaleckas@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261013112124.1878296-1-paulius.zaleckas@gmail.com> References: <20261013112124.1878296-1-paulius.zaleckas@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Devicetree nodes match the driver only through the I2C ID table fallback. Add an OF match table, so the chip data comes from the compatible and the module autoloads from the of: modalias the I2C core reports for devicetree devices. Assisted-by: LLM Signed-off-by: Paulius Zaleckas --- drivers/iio/pressure/dps310.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/iio/pressure/dps310.c b/drivers/iio/pressure/dps310.c index 0d558edff5ab..3b27a61b70a5 100644 --- a/drivers/iio/pressure/dps310.c +++ b/drivers/iio/pressure/dps310.c @@ -1045,6 +1045,12 @@ static const struct i2c_device_id dps310_id[] = { }; MODULE_DEVICE_TABLE(i2c, dps310_id); +static const struct of_device_id dps310_of_match[] = { + { .compatible = "infineon,dps310", .data = &dps310_chip_info }, + { } +}; +MODULE_DEVICE_TABLE(of, dps310_of_match); + static const struct acpi_device_id dps310_acpi_match[] = { { "IFX3100", (kernel_ulong_t)&dps310_chip_info }, { } @@ -1054,6 +1060,7 @@ MODULE_DEVICE_TABLE(acpi, dps310_acpi_match); static struct i2c_driver dps310_driver = { .driver = { .name = DPS310_DEV_NAME, + .of_match_table = dps310_of_match, .acpi_match_table = dps310_acpi_match, }, .probe = dps310_probe, -- 2.55.0