Message ID | 20221130160904.77617-1-olivier.moysan@foss.st.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1021703wrr; Wed, 30 Nov 2022 08:23:13 -0800 (PST) X-Google-Smtp-Source: AA0mqf60b8AGAMZFlas89zmOVbUg7zKn3tREFZzWbLFur5SxIOWSJbYJaXZ4ESCnlLijtYpGu0LN X-Received: by 2002:a05:6402:e8c:b0:468:89dd:aa0b with SMTP id h12-20020a0564020e8c00b0046889ddaa0bmr57076245eda.258.1669825393266; Wed, 30 Nov 2022 08:23:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669825393; cv=none; d=google.com; s=arc-20160816; b=KXUyB2UoqWZvlF/UXTqPXOhZDvF9w4g6m87BPnRWomALrK8dJumzXyrEAE0jzUiDq3 wzOpEIIP0FvOcv6LsdiwkSTzZ/R2LVAqpbFJmJAneH5xxrS6u+/cxxS2mrnRcAP9aX/r cR7f8kZ8TCbc3rURoJUFSiJjqhlG/oQTSuVliJtXReIfbIsXMPs7KF0y8Dqqnf8b/nBz KPWJbNleeSeMmuI/BUayJGTpHM18SwhaN4t+QD9ZUiPNZlkQgBAiFv626tNln+CoqDLX BQ9gQzztUA4036ObpNRAjftBtxEak0ca+PE0reyf0Zki3I2mqVyswxFHzlDTJFUx3n+X acjg== 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:dkim-signature; bh=c+N0sO42WJ7Zhqj8Bl7BWiO54s59p6fiZBwxdraw+dA=; b=WcJEd1nS6KcOQ/33ii8XPyIBP8Zi4Rxc04QWLE2IYIVU++QcKUurM+GzxvNkYyGLPg 1WyvfHxB0HccGxcCORnpO4V1/nJl6MFcrNVvpZsgKdUJwT/PYzZfzqGHf41aSX9CYQPL GRoWmQ9oTIAsQq01eVS4HJ7BYS62GX19jQNvxt+G7/1CLpYiMq8/CtKi7YPwpAm2bWPz J5hBf5a54tJ8xCmUHS4p7wcY6MeOJ41JP5EsJrcHSyqm4e/EJqP3IA/XB7ZKzu+u4/hy CehMbA0Xad4WjdsrkUUdNTk4IL+pSXb4wGQClwABYVAVOnML6JFS/m9gev0X+1eQYBCT lVyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=j4yfgOkx; 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=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn9-20020a05640222e900b0046b13a74fa8si1568754edb.416.2022.11.30.08.22.49; Wed, 30 Nov 2022 08:23:13 -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=@foss.st.com header.s=selector1 header.b=j4yfgOkx; 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=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230071AbiK3QKF (ORCPT <rfc822;heyuhang3455@gmail.com> + 99 others); Wed, 30 Nov 2022 11:10:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbiK3QKD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 30 Nov 2022 11:10:03 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A52072E9C5; Wed, 30 Nov 2022 08:10:01 -0800 (PST) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AUC9m16017210; Wed, 30 Nov 2022 17:09:27 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=c+N0sO42WJ7Zhqj8Bl7BWiO54s59p6fiZBwxdraw+dA=; b=j4yfgOkxjvQiBvmp1Xcn3WsVtQNwEW8mKsEkGo41bRJKWPjtdp4HLgsi0g3i39MlBIGN T2ps/HFikvxJ34CV+QI7gSwNdy/wLIt4frXJiNqP4SJndtRCYUvQX5T6Y93sM+wam9Kt 7k+PwMjVYOE3nRuTHVsDGw2igeJAXjWCej9GdkkuTcOxb3j7JTGb5W6p4T38F6Iqx3Qb GYVmTDXk07s/kdxlUJWy+r6we1kygBL+CK+08VKilwB3vT48PowmqFp7Zt21RODIJIZN +9Gvk2TA78OBBeDk9u95AzJs3QS0FwChtl2+2TRmmCzSxVs4XexPhBGgOD262Owuqf0R XA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3m5krgqf6d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Nov 2022 17:09:27 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 12B09100034; Wed, 30 Nov 2022 17:09:21 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 0BD6622FA40; Wed, 30 Nov 2022 17:09:21 +0100 (CET) Received: from localhost (10.252.12.173) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.13; Wed, 30 Nov 2022 17:09:20 +0100 From: Olivier Moysan <olivier.moysan@foss.st.com> To: Jonathan Cameron <jic23@kernel.org>, Lars-Peter Clausen <lars@metafoo.de>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com> CC: Olivier Moysan <olivier.moysan@foss.st.com>, <linux-iio@vger.kernel.org>, <linux-stm32@st-md-mailman.stormreply.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH] iio: adc: stm32-dfsdm: fill module aliases Date: Wed, 30 Nov 2022 17:09:04 +0100 Message-ID: <20221130160904.77617-1-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.252.12.173] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-30_04,2022-11-30_02,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750938831685416009?= X-GMAIL-MSGID: =?utf-8?q?1750938831685416009?= |
Series |
iio: adc: stm32-dfsdm: fill module aliases
|
|
Commit Message
Olivier MOYSAN
Nov. 30, 2022, 4:09 p.m. UTC
When STM32 DFSDM driver is built as module, no modalias information
is available. This prevents module to be loaded by udev.
Add MODULE_DEVICE_TABLE() to fill module aliases.
Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
---
drivers/iio/adc/stm32-dfsdm-adc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c index 6d21ea84fa82..a428bdb567d5 100644 --- a/drivers/iio/adc/stm32-dfsdm-adc.c +++ b/drivers/iio/adc/stm32-dfsdm-adc.c @@ -1520,6 +1520,7 @@ static const struct of_device_id stm32_dfsdm_adc_match[] = { }, {} }; +MODULE_DEVICE_TABLE(of, stm32_dfsdm_adc_match); static int stm32_dfsdm_adc_probe(struct platform_device *pdev) {