From patchwork Tue Apr 20 17:01:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12214789 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F22ADC43462 for ; Tue, 20 Apr 2021 17:01:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B70DD613AE for ; Tue, 20 Apr 2021 17:01:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233287AbhDTRCM (ORCPT ); Tue, 20 Apr 2021 13:02:12 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50109 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233282AbhDTRCL (ORCPT ); Tue, 20 Apr 2021 13:02:11 -0400 Received: from mail-ed1-f70.google.com ([209.85.208.70]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtko-0004Vr-Ku for linux-samsung-soc@vger.kernel.org; Tue, 20 Apr 2021 17:01:38 +0000 Received: by mail-ed1-f70.google.com with SMTP id z3-20020a05640240c3b029037fb0c2bd3bso13574741edb.23 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=o/IJkL7OCF3VknTYgUyyOa4GKAXWRBeHLV1qnyfXB6Ed5P3eXkw/If8LrKUSugDEnF xJ7UrrIBZRIZv/T9OEt0hBIOKTN6rwjWuyf1Yt0mbUU7arYWZqQqgA5Y21DD3Y5Effom hUm5jf/+wxf69N+bJ7b5Pocf5hooiWsqIF60uRWT21KJZV1I9/O80T2TbUDJ9UQNOYYg msWKXeDbjlpKfBMR06QbCDND8HhzB+sCytCM8p3qmgfyLH/Tr0kD6llUcq58fGLFZgvD q7HKB6lCQo+ld/XXSqwbk4uZGxxdaUa4gQVb/HOYEXQPFfFwlTDXjZ/+cplWobUEx0Ho WO7Q== X-Gm-Message-State: AOAM530rGV0/ONhvAt0HDYja6HchseSBe3VcW8VG1x7RjOZJvZV63vAb v77Vd61XLcW5egdg3TYlzGDdsKZ4NStgzTWx5GdX9Xd3u1UDQgRx2QVgfMs4gumNkYpLE93pEhG dUhf6sMMa2adXt86cJXrZsVD/szhK4gY2/htHluuotQULDqX0 X-Received: by 2002:a17:906:a10e:: with SMTP id t14mr28175402ejy.103.1618938096020; Tue, 20 Apr 2021 10:01:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5VBAesIurvAN/mJmidYWOkS3cFDUzXX2qoPNrx8KEYx6J8WUPmFjGJfIG6RsmohoUpNTSUw== 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 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@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;