Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3521571pxb; Tue, 20 Apr 2021 10:03:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOdRlzDitDpYHF09sXQ0F3bbR5tlHElE77UXTQmrfruVjKA8XEDcjkDXRbLIrMIAJ2fXb5 X-Received: by 2002:a05:6402:1698:: with SMTP id a24mr19919063edv.62.1618938214415; Tue, 20 Apr 2021 10:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618938214; cv=none; d=google.com; s=arc-20160816; b=mHqVN+avlCuGg/Rq5jqehYSOpfkIKYV2wxWFBKKQa1Ki//QPfqkNBHS+XqgitT3M/B Wd27kxClGD7Sx9GUDTmqVULFHmEokwNHNuso81eLtEOvyUxIe0Egcaz4ZvQl4myCrYVe jIQvZZSX5vD8l7cDW5SN0q0eIVsSzObzFT/AmE/Q4jJFWaS4o6zcCjjiB9WwQpeAehJg jovehlBgh+hYRq2aQzAE94Q775rDq8+HtMEfPcPd3w8bIoiZpkkv5AwE0aEjwsIoLp4e /01d8hLnm0VyNGnVPmpYlAm0065mN+6FurmJBrD0RKMufRy1wtEjpAF3KJOuzUqf87uJ 0CYA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=u4MQZJQCSFcmUXULRJb5AryMwyvkkTE7eS672AhRJWI=; b=hEp95egdf5sYpNMewMwBhtS0bAUhJABsm6/O/HtABrcwYemkFQ+bnMT//tthAkQmjj pJ1titjFJZgFVfQscx3vrm30UpofpvixTva9DiSU4osZCKmL1pPoWj8ovon2GnW6hVtr dQ3QK012qTwZhdtaHoPwkkbBDcVx6hNIWhLIMdM7LX777rVltoZQXmkGs832iE7Nm2Ai mrff3btRiG/ZhSwr39vDUJUxfgf1C1wACPGBDx+V0PF0YJxXqCbSUkEcmJimta3P3Zcx tx/BvGLOafqhXQdo2WBUvRccEGfoyZ257eIqzDRnpjSWxCznU/JONdcpfvVFszhK/pn7 z1zQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw23si15018311ejb.107.2021.04.20.10.03.10; Tue, 20 Apr 2021 10:03:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233332AbhDTRCR (ORCPT + 99 others); Tue, 20 Apr 2021 13:02:17 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50110 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233285AbhDTRCL (ORCPT ); Tue, 20 Apr 2021 13:02:11 -0400 Received: from mail-ed1-f71.google.com ([209.85.208.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtko-0004Vu-RH for linux-kernel@vger.kernel.org; Tue, 20 Apr 2021 17:01:38 +0000 Received: by mail-ed1-f71.google.com with SMTP id i25-20020a50fc190000b0290384fe0dab00so7898388edr.6 for ; Tue, 20 Apr 2021 10:01:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=u4MQZJQCSFcmUXULRJb5AryMwyvkkTE7eS672AhRJWI=; b=i9IaY9Sv0Rwci0z+1srb2EXIV6u9HO4DziePepXVCJkf4zanV+7E8lASvy4nAzJDqb GtFupXyy11Ly0DxboDeSZvjvZGoIxAHiNEckJbvp4x0Dxj2mLpIx2JtEvF6a3Iv8+12z nZwsdH0JAfvJKDJQuzq5lUoU63r4GbR0Bnk64RjNhX1A0Qlk5wV9tQxkuS2cGPVW5Ffz xELtLIBsaumcVr9PKumZvuydPijvYNM+b9/h17nebkQbw7s+YKAqDmSaBf5EYQCDdAnp 7fzwyd0vsI4Q+o+ThGhKjelhSvzQ0LzASxF+0zQYLObe06AsC1dGiy8fmMJwwi+LXpyf IDAQ== X-Gm-Message-State: AOAM532QMMzJtp/soa64VN/dwwnz3dIgh1AekZY3SdV4/Ml4mMFizNgp pzbmADZzJsqSHYoGud8Iu2hDdGONdfAD0j2eK1xBYGYWvBiNzlR5DA3gCnFBjAiDOxhvU1iSdPY mqAsDazsEsfLi7iaJWc01bn+RTtdj+TszyyH13y0WTQ== X-Received: by 2002:a17:906:a10e:: with SMTP id t14mr28175401ejy.103.1618938096019; Tue, 20 Apr 2021 10:01:36 -0700 (PDT) X-Received: by 2002:a17:906:a10e:: with SMTP id t14mr28175378ejy.103.1618938095878; Tue, 20 Apr 2021 10:01:35 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id x7sm16334441eds.67.2021.04.20.10.01.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 10:01:35 -0700 (PDT) From: Krzysztof Kozlowski To: Lee Jones , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Liam Girdwood , Mark Brown , Alessandro Zummo , Alexandre Belloni , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-rtc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki Subject: [PATCH 4/9] mfd: sec: Remove unused irq_base in platform data Date: Tue, 20 Apr 2021 19:01:13 +0200 Message-Id: <20210420170118.12788-5-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420170118.12788-1-krzysztof.kozlowski@canonical.com> References: <20210420170118.12788-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 'irq_base' field of platform data structure is not assigned, therefore its default value of 0 has no impact and can be safely dropped. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/sec-core.c | 1 - drivers/mfd/sec-irq.c | 4 +--- include/linux/mfd/samsung/core.h | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index 4c4db3171ce6..a9d4fbc51997 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c @@ -337,7 +337,6 @@ static int sec_pmic_probe(struct i2c_client *i2c, } sec_pmic->device_type = (unsigned long)of_device_get_match_data(sec_pmic->dev); - sec_pmic->irq_base = pdata->irq_base; sec_pmic->wakeup = pdata->wakeup; sec_pmic->pdata = pdata; diff --git a/drivers/mfd/sec-irq.c b/drivers/mfd/sec-irq.c index a98c5d165039..e473c2fb42d5 100644 --- a/drivers/mfd/sec-irq.c +++ b/drivers/mfd/sec-irq.c @@ -444,7 +444,6 @@ int sec_irq_init(struct sec_pmic_dev *sec_pmic) if (!sec_pmic->irq) { dev_warn(sec_pmic->dev, "No interrupt specified, no interrupts\n"); - sec_pmic->irq_base = 0; return 0; } @@ -482,8 +481,7 @@ int sec_irq_init(struct sec_pmic_dev *sec_pmic) ret = devm_regmap_add_irq_chip(sec_pmic->dev, sec_pmic->regmap_pmic, sec_pmic->irq, IRQF_TRIGGER_FALLING | IRQF_ONESHOT, - sec_pmic->irq_base, sec_irq_chip, - &sec_pmic->irq_data); + 0, sec_irq_chip, &sec_pmic->irq_data); if (ret != 0) { dev_err(sec_pmic->dev, "Failed to register IRQ chip: %d\n", ret); return ret; diff --git a/include/linux/mfd/samsung/core.h b/include/linux/mfd/samsung/core.h index bfde1b7c6303..9864f13b7814 100644 --- a/include/linux/mfd/samsung/core.h +++ b/include/linux/mfd/samsung/core.h @@ -67,7 +67,6 @@ struct sec_pmic_dev { struct i2c_client *i2c; unsigned long device_type; - int irq_base; int irq; struct regmap_irq_chip_data *irq_data; @@ -83,8 +82,6 @@ struct sec_platform_data { struct sec_opmode_data *opmode; int num_regulators; - int irq_base; - bool wakeup; bool buck_voltage_lock; -- 2.25.1