From patchwork Fri Dec 2 15:28:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier MOYSAN X-Patchwork-Id: 28943 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp924261wrr; Fri, 2 Dec 2022 07:32:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Zxt7LvQrN05FIPNEF2+j1gYDe2sV7RUqjUjc/lN8w3Gz5a0PTSjXL4RDoUxy4jPTn9YOr X-Received: by 2002:a17:906:590e:b0:78d:5176:c4d2 with SMTP id h14-20020a170906590e00b0078d5176c4d2mr59933236ejq.532.1669995169502; Fri, 02 Dec 2022 07:32:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669995169; cv=none; d=google.com; s=arc-20160816; b=fr2CiYTakIQNmrZ2QFEccnxp+rwyaCUXJuCd1KnsCqLO8BxH6OU4o0bkCm3Yw9XLY9 Eu4RXCyTP1WcEgPT/j658T4OvrAAn+ZHhCWO9vRBY/g55I4TPn3TE9GFAx47dGP4uLOm Bh1LHgffHnjXXuXglDD18IivteUyNPkDQtlPZUoTIEHu0HBMtFoSj5XF9OX4QD0vFvER sWUpydIfYhXDLNpde+8ccXmiKdaSTPLZ/JRu7m0dZ9Hwb1JBSWzhV4cNdUXWEEO5gaI7 jyXhaTBeQkZNK3jZyefFo/JkqZdXek/H5EndoKgJc10rFt0F8hAmnDxH2xRfgy0Jvcz1 PPEA== 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=j3QI4b6wwS5JSW/4QFxm3S7yERfUu8bKp/Jqibb8MBM=; b=aJ1x8Hu6C6O7kh9dg5sWScpRm4CQuF9bAfTPY+rgq++rPqPpEAAENxs+qSJU5oiPN9 DgIbDVsm14SBpZvino47AvNCeGXt3yhgb1AbtztT3+HctOdC5Xo92MEcrDr0r1wvrQZk 11v21qFUw/K7GHkCKHXD7NJT2C3B4HskxAiQPGRUGY0I0kUBEer//0l62pf5cuIRMXCb uUYcSTOcSH377b5PRJiA95T782/P/WE4fCwIEP5ekM4DvN3w9vYEPtH/AjfZ/K7vmANB Ty1MNBEk7+gvt283fl406PDajsAt/7C0CK2MZVnhKQRS17XRGVPZ1gmLfkGVofghj9nN LMtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=TCebgc5o; 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 qw31-20020a1709066a1f00b007c08a2c2406si5958549ejc.85.2022.12.02.07.32.24; Fri, 02 Dec 2022 07:32:49 -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=TCebgc5o; 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 S233332AbiLBPbj (ORCPT + 99 others); Fri, 2 Dec 2022 10:31:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233151AbiLBPbi (ORCPT ); Fri, 2 Dec 2022 10:31:38 -0500 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE58DA65B5; Fri, 2 Dec 2022 07:31:37 -0800 (PST) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B2C8b7K012212; Fri, 2 Dec 2022 16:30:54 +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=j3QI4b6wwS5JSW/4QFxm3S7yERfUu8bKp/Jqibb8MBM=; b=TCebgc5oELRM6tNKCMR0O2e6XgneqU+S6GtOQn3JGkvGmkHnI/x4qLYEhgbIJHfSjSQb 1JnUwHG+UpfBj6n/QY1dk85jeoW04cYKfkSAvNWfhy/l/zTM51Cunil/sTEJaiK89Ruj s4V3Oe2Ke6HVWuUvK5LxgNf/BgH1LHzqlJRwEbDSslR1Cw0EPVtU136OyQlxO2vXwewD h2/UvBN9wrFVa18F6aY1XQhEWXyXgPD6lzUK1aMtrNnUGIEn+TMEjAW6e1JLptUwH7pz 1ACpMPN0rcxqCRtZg5afR1JkL2i8tYOTdfQl8QUYS4exRMerNM3lEZ931UqmLYWbWlrL UA== 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 3m6k7mu091-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Dec 2022 16:30:54 +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 B3586100034; Fri, 2 Dec 2022 16:30:48 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id AD85622D178; Fri, 2 Dec 2022 16:30:48 +0100 (CET) Received: from localhost (10.252.0.75) 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; Fri, 2 Dec 2022 16:30:48 +0100 From: Olivier Moysan To: Jonathan Cameron , Lars-Peter Clausen , Maxime Coquelin , Alexandre Torgue , Mark Brown , "Arnaud Pouliquen" CC: Olivier Moysan , Jonathan Cameron , , , , Subject: [PATCH v2] iio: adc: stm32-dfsdm: fill module aliases Date: Fri, 2 Dec 2022 16:28:48 +0100 Message-ID: <20221202152848.45585-1-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.252.0.75] 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.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-02_08,2022-12-01_01,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751116854806694928?= X-GMAIL-MSGID: =?utf-8?q?1751116854806694928?= 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. Fixes: e2e6771c6462 ("IIO: ADC: add STM32 DFSDM sigma delta ADC support") Signed-off-by: Olivier Moysan --- Changes in v2: Add Fixes tag --- 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) {