From patchwork Wed May 26 12:47:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12281551 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 B3951C47082 for ; Wed, 26 May 2021 12:50:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9B7E3613DC for ; Wed, 26 May 2021 12:50:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232661AbhEZMwY (ORCPT ); Wed, 26 May 2021 08:52:24 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:56937 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234920AbhEZMt2 (ORCPT ); Wed, 26 May 2021 08:49:28 -0400 Received: from mail-ua1-f72.google.com ([209.85.222.72]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1llsx2-00011g-10 for linux-samsung-soc@vger.kernel.org; Wed, 26 May 2021 12:47:56 +0000 Received: by mail-ua1-f72.google.com with SMTP id o4-20020ab037640000b0290218107a4549so705273uat.14 for ; Wed, 26 May 2021 05:47:55 -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:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yas4eb6X58o/Bpn+7QlC+KUOEDd/pLhewc6kAqI5ERQ=; b=YXa3LFwZJrSR6oSc1snWF9NpOeELEuRSnmYdaqnVOp2ZCcpYEESBRV0nBkePMixRGB euM1Vp4hozRYQZZC2jbv05JJGbyo/tCAqutENmDo9pr3TNlJjzmKsntBY2+AVlerKTNN InYtR5UDzJSeDj6nv7ikFEC5CX5IInMQ9019sg4A1vBPQ3+zqdq7Ge8mAJ0DpwvnIXZ8 yaDR5IFtvVf/g3fb1Wk832VZq03ZUWavCr6KIsi53zcOvte5PS2ZW9M6H9mqs3hqwD79 B5ejb9Tgi4cL4MynvlAx1/UY9Bnwqs//PGZD79/YG+BjIz/JUL1qFzMP3/tTxd9qb7Tf bJKA== X-Gm-Message-State: AOAM533qQfUJSXlIWYNubjftIOnqxV+7xrY1ba0Rgne7BrbjujzJkwKX U3BOabv+nDA3SDFLj1ArTD50cWTc2ZwpAYh4OtXiinamo88wAweLc04uo5ChWqWT4Ob5p+Ko/0m +H9YQPDZJ4+ttInX5Y6EFQ8UOSEa9vQ8l0v4ljXACv0VPbEtk X-Received: by 2002:a67:f303:: with SMTP id p3mr13195177vsf.37.1622033274859; Wed, 26 May 2021 05:47:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUp5kruxawn6cjhi4Yijw6pPdfl65zkfOmhAEzzR7+KwZhyv3ui12e7v0bfCZkpNWEQogC2g== X-Received: by 2002:a67:f303:: with SMTP id p3mr13195148vsf.37.1622033274657; Wed, 26 May 2021 05:47:54 -0700 (PDT) Received: from localhost.localdomain ([45.237.48.3]) by smtp.gmail.com with ESMTPSA id c126sm875817vkh.47.2021.05.26.05.47.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 05:47:53 -0700 (PDT) From: Krzysztof Kozlowski To: Lee Jones , Support Opensource , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Tony Lindgren , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-omap@vger.kernel.org, patches@opensource.cirrus.com Subject: [RESEND PATCH v2 10/13] mfd: sec: Remove unused device_type in platform data Date: Wed, 26 May 2021 08:47:08 -0400 Message-Id: <20210526124711.33223-11-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210526124711.33223-1-krzysztof.kozlowski@canonical.com> References: <20210526124711.33223-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The 'device_type' field of platform data structure is not used and can be safely dropped. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/sec-core.c | 5 +---- include/linux/mfd/samsung/core.h | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index 653d02b98d53..4c4db3171ce6 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c @@ -318,7 +318,6 @@ static int sec_pmic_probe(struct i2c_client *i2c, struct sec_platform_data *pdata; const struct mfd_cell *sec_devs; struct sec_pmic_dev *sec_pmic; - unsigned long device_type; int ret, num_sec_devs; sec_pmic = devm_kzalloc(&i2c->dev, sizeof(struct sec_pmic_dev), @@ -330,16 +329,14 @@ static int sec_pmic_probe(struct i2c_client *i2c, sec_pmic->dev = &i2c->dev; sec_pmic->i2c = i2c; sec_pmic->irq = i2c->irq; - device_type = (unsigned long)of_device_get_match_data(sec_pmic->dev); pdata = sec_pmic_i2c_parse_dt_pdata(sec_pmic->dev); if (IS_ERR(pdata)) { ret = PTR_ERR(pdata); return ret; } - pdata->device_type = device_type; - sec_pmic->device_type = pdata->device_type; + 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/include/linux/mfd/samsung/core.h b/include/linux/mfd/samsung/core.h index 68afc2b97a41..bfde1b7c6303 100644 --- a/include/linux/mfd/samsung/core.h +++ b/include/linux/mfd/samsung/core.h @@ -81,7 +81,6 @@ int sec_irq_resume(struct sec_pmic_dev *sec_pmic); struct sec_platform_data { struct sec_regulator_data *regulators; struct sec_opmode_data *opmode; - int device_type; int num_regulators; int irq_base;