Received: by 10.223.185.116 with SMTP id b49csp658723wrg; Fri, 23 Feb 2018 04:54:35 -0800 (PST) X-Google-Smtp-Source: AH8x226FeMRRiGDdlFRlHFsrqfC2c+cKo4BPi78rtr6Xr6xgpjq5ZKygnb1yE7HIzoU+aejrCZJh X-Received: by 10.99.66.135 with SMTP id p129mr1416306pga.220.1519390475765; Fri, 23 Feb 2018 04:54:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519390475; cv=none; d=google.com; s=arc-20160816; b=pS09sAvbv3Nlzs5lNdWYXltpXJ5+6JNV8/8q4I4/MRNKtHg3XMPNlY9zzmFRvIoZuA E8iGOfSctYly2e1+We13//6saxcrVX0T/gMnTAszr4FALJKuqvAR1kNtVmSIui7A/WJ0 Mf3w43ID0Zaspdyi0rGc0uq8eVC+bfJ7taVOUcXv8uqi+zRSAnxCDndOB3CIziYJRwGd ubzCPdwtfyTTiHObVBGeispKH49vw3ggBYXJSnZXuLMHHQJgxEwImG8Hhdoaqr1d8cAd ZjeEb6/RJLTpqLUpxcCKfTa9KgCSFy2tgcvdA8DeYIHyK/ziF0BPVXWvYAHmJbJtJQM9 mOCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=kyKcTqTJ0xcE1r2o4T3c4DOdbkKO1/FJRAhANvz/FO0=; b=rkl4Ayfel4CzQFANWSWq6fLxnZcYcPktnwjw+5+0NwQSU5PXlpmrbUztxqvHlDRkiS N6ODCJCXYPUl1bT6m60tEuWZso6FABr1/GSKzuaa7Vn5IOoPUI4dqZVTxkia1p7v3kf5 Hlkc3NpLh/i7UCwHozmMA4ZOdnHMpXcvPZB6gFhwimLOyQxmWtD2Ail/t2kfEApViC7L FH9vqMmF2u6X0PBW7WfybGf8o3tBOWJJlWHQ09MUDcnjT7CVC2oO7CNxYZ1frKvjjLDV CDuiuEhDzvgffotF4pU28BGMSeOKbKLLiUDVwsJo/K+7Or6YNvOJYS+HTNhE7vc+mEn4 ifSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si145012pgq.0.2018.02.23.04.54.21; Fri, 23 Feb 2018 04:54:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751768AbeBWMxA (ORCPT + 99 others); Fri, 23 Feb 2018 07:53:00 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:21966 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751399AbeBWMwB (ORCPT ); Fri, 23 Feb 2018 07:52:01 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w1NCmg9j017174; Fri, 23 Feb 2018 13:51:19 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2g9bqd221q-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 23 Feb 2018 13:51:19 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 808F234; Fri, 23 Feb 2018 12:51:18 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node3.st.com [10.75.127.15]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5DC214DB5; Fri, 23 Feb 2018 12:51:18 +0000 (GMT) Received: from localhost (10.75.127.46) by SFHDAG5NODE3.st.com (10.75.127.15) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 23 Feb 2018 13:51:18 +0100 From: Fabrice Gasnier To: CC: , , , , , , , , , , Subject: [PATCH 1/7] iio: adc: stm32-dfsdm: fix compatible data use Date: Fri, 23 Feb 2018 13:50:55 +0100 Message-ID: <1519390261-25453-2-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1519390261-25453-1-git-send-email-fabrice.gasnier@st.com> References: <1519390261-25453-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG4NODE2.st.com (10.75.127.11) To SFHDAG5NODE3.st.com (10.75.127.15) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-23_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix use of compatible data: stm32h7 regmap configuration is statically used. Rather use regmap_cfg from compatible data. Fixes: bed73904e76f ("IIO: ADC: add stm32 DFSDM core support") Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-dfsdm-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/stm32-dfsdm-core.c b/drivers/iio/adc/stm32-dfsdm-core.c index 6290332..0635f93 100644 --- a/drivers/iio/adc/stm32-dfsdm-core.c +++ b/drivers/iio/adc/stm32-dfsdm-core.c @@ -274,7 +274,7 @@ static int stm32_dfsdm_probe(struct platform_device *pdev) dfsdm->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "dfsdm", dfsdm->base, - &stm32h7_dfsdm_regmap_cfg); + dev_data->regmap_cfg); if (IS_ERR(dfsdm->regmap)) { ret = PTR_ERR(dfsdm->regmap); dev_err(&pdev->dev, "%s: Failed to allocate regmap: %d\n", -- 1.9.1