From patchwork Wed May 26 12:47:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 448605 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=-14.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY, USER_AGENT_GIT autolearn=unavailable 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 D4A36C47088 for ; Wed, 26 May 2021 12:50:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B46606113D for ; Wed, 26 May 2021 12:50:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233613AbhEZMwM (ORCPT ); Wed, 26 May 2021 08:52:12 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:56968 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234951AbhEZMth (ORCPT ); Wed, 26 May 2021 08:49:37 -0400 Received: from mail-vs1-f69.google.com ([209.85.217.69]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1llsxB-00014i-MR for linux-samsung-soc@vger.kernel.org; Wed, 26 May 2021 12:48:05 +0000 Received: by mail-vs1-f69.google.com with SMTP id g13-20020a0561020ccdb029023fe9ce9042so197759vst.3 for ; Wed, 26 May 2021 05:48:05 -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=0G840/6Lxcb0Mf0VQ/EHwzTpuJEk0LuU0gTLTIwmZhs=; b=Ln9PZ+0FUxEsnixKvxSFj7vSHgYVvc+urEmABprVN+lGddvcZ6AqWqHajQjSQnRK9U sS80IVxw9CTlwtCgH4ByStoYABh3D94IHr/7io7b6oor6YVEkSkTImW+vwprMXa5mwML w6vZ350m21O8RyaXGRZLF+Z2sQz9UVfsn9waAkdfgeqIvX7MFkUbFUsktxsXjjcVGqmK uvIGlDXODxpUpAeepOqv2boNfy9Vu6uemqb9oYwVYqYRkWsK04edn24YXCJ8RZUH0xKW /e4RIZXOjCEx0FA9t6Z6q+4wvdB7tCyFZnLNi+mlzhOnl4IpO5ntaFEGOcXXpqcESloA dBfQ== X-Gm-Message-State: AOAM530FSPSf4WFzLSQSc7VCE1M5e2gJgVuxvhciQRav9/mbToiWsYew Tr0LoFz4UIt+UexiLzqJl0Bx8cbRcxNC+LNJnA85m31XhGynr7LKubVQRN/86Ho9hRIwKD14SP+ bmsI7Rn7gh29Wz03vPfTLNtZlH75+yNCyF6f7smtoRpVl6jI9 X-Received: by 2002:a67:ec4f:: with SMTP id z15mr29705038vso.27.1622033284477; Wed, 26 May 2021 05:48:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCoTnt6t9OzH8wpF2Ii6dBrFO6A3IuSsgipAxOrGMJk8cgaaL0/Ep+nV8/pkm14FWQbrzLzQ== X-Received: by 2002:a67:ec4f:: with SMTP id z15mr29705029vso.27.1622033284342; Wed, 26 May 2021 05:48:04 -0700 (PDT) Received: from localhost.localdomain ([45.237.48.3]) by smtp.gmail.com with ESMTPSA id c126sm875817vkh.47.2021.05.26.05.48.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 05:48:03 -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 13/13] mfd: sec: Remove unused platform data members Date: Wed, 26 May 2021 08:47:11 -0400 Message-Id: <20210526124711.33223-14-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 Samsung PMIC drivers for early chipsets like S5M8767 stored quite a lot in platform data (struct sec_platform_data). The s5m8767 regulator driver currently references only some of its fields. Newer regulator drivers (e.g. s2mps11) use even less platform data fields. Clean up the structure to reduce memory footprint and source code size. Signed-off-by: Krzysztof Kozlowski --- include/linux/mfd/samsung/core.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/include/linux/mfd/samsung/core.h b/include/linux/mfd/samsung/core.h index b0d049a56d16..f92fe090473d 100644 --- a/include/linux/mfd/samsung/core.h +++ b/include/linux/mfd/samsung/core.h @@ -80,8 +80,6 @@ struct sec_platform_data { struct sec_opmode_data *opmode; int num_regulators; - bool buck_voltage_lock; - int buck_gpios[3]; int buck_ds[3]; unsigned int buck2_voltage[8]; @@ -91,35 +89,12 @@ struct sec_platform_data { unsigned int buck4_voltage[8]; bool buck4_gpiodvs; - int buck_set1; - int buck_set2; - int buck_set3; - int buck2_enable; - int buck3_enable; - int buck4_enable; int buck_default_idx; - int buck2_default_idx; - int buck3_default_idx; - int buck4_default_idx; - int buck_ramp_delay; - int buck2_ramp_delay; - int buck34_ramp_delay; - int buck5_ramp_delay; - int buck16_ramp_delay; - int buck7810_ramp_delay; - int buck9_ramp_delay; - int buck24_ramp_delay; - int buck3_ramp_delay; - int buck7_ramp_delay; - int buck8910_ramp_delay; - - bool buck1_ramp_enable; bool buck2_ramp_enable; bool buck3_ramp_enable; bool buck4_ramp_enable; - bool buck6_ramp_enable; int buck2_init; int buck3_init;