Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3523945pxb; Tue, 20 Apr 2021 10:06:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRXLfVOjjUAq8z8AofH/Q7z+HQ9Cmg9VWc9yL9kNk5ZLwn+qvNU+9osiMwrqpvXIU7IA5e X-Received: by 2002:a17:906:b52:: with SMTP id v18mr28402646ejg.485.1618938377309; Tue, 20 Apr 2021 10:06:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618938377; cv=none; d=google.com; s=arc-20160816; b=WphiVIDcHsxYMj2o73tHpFrzg0jBoReangMRM+8jWLziytsfBdOjZz0wibPk1pkVyd 1ut5aTtoMg+HkLuuF3m9pHLx876NgRizsOMpfKAF0umEy0DuS3Fji21/N1D90bq09upq ts0Gs1lqKv58vk9qYzFVrHh61FknVl3WAxGP2khiPaqvQ29ZENMPjfKp6LmN2Tnm/SU5 /uoiAGmhFIHvJlT1MtaDQEsRILgnGu2AetFk5gEVeTQd7VdMUzJfObCww3TZRISufMOX JIzc9EAHXAmVhUG1GTcLWjRDha+PMPthMQdZJ4OfVLHubQfyuNMZIiBWjdrNDxRwb/Xu UMnw== 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=Rjka4Njemna1OOKJdcZeeFwVYEY/9hgKuOFFKuvjSYE=; b=FIaYtHl/GaU30RuNpBTi7aGEQJtEZ/Hr/HUdOaiekFAq60KLjFWV2dnGWuzUzzkKIn Gy2j4a9lAYDIUHoIJSNcJ6rlOtfEYSQnPNU7TL+g2Sm/Ows/Ij5gfy6CMUAx0sWKNnZ6 7IZR99uvxOjuzBPn5y1W/IynQsNKBCIOVVokXvlo48K9uFF6PPYy4wfFfExEDhvSXUhj 12ApI+8r8zadbEND+CT7r4QzdqlJZ8uDS0dfl0KZrPEEKUO2PgwFylQFoZxF2l2KJJBy Lh1WzVUTiYbSDtW09ygSVz/chernEJKiV7inoDzjiYKOFclqSL2OHNwXahTi5/oDJzs8 wN/g== 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 s25si15556121eju.111.2021.04.20.10.05.53; Tue, 20 Apr 2021 10:06:17 -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 S233369AbhDTRDX (ORCPT + 99 others); Tue, 20 Apr 2021 13:03:23 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50135 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233285AbhDTRDV (ORCPT ); Tue, 20 Apr 2021 13:03:21 -0400 Received: from mail-ed1-f69.google.com ([209.85.208.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lYtlw-0004bX-TB for linux-kernel@vger.kernel.org; Tue, 20 Apr 2021 17:02:48 +0000 Received: by mail-ed1-f69.google.com with SMTP id r14-20020a50d68e0000b0290385504d6e4eso3544567edi.7 for ; Tue, 20 Apr 2021 10:02:48 -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=Rjka4Njemna1OOKJdcZeeFwVYEY/9hgKuOFFKuvjSYE=; b=TYnfl/8O7SlissfAmDGfV9MN4TZOvxOudM0G6k1swVa0jDXvXQ/egl6Ig+O6Fdk4Cp vImfRcRbsnxQt0RpDnKRnRmiCAK0CDA9HKyI4nt5aepQI4kbfBuMDb/A+ke2JNlELwvc U9taDbRgLCUKCgwqaOam9OYE22F1OeBI0hat49/L9kybjyv5WS6DyjdxJt4HFMfA8bd6 9vo+GgSw/zGda9nYC3pStqaI2XdRQ6uAUZ4XhGCy9dbxCMCA8IYklDC0POcjSQcS0DAX jXFk2O3P4A9EKPfNXEUKcY30RBjv3uvc72UWHLiAcKurfVO+rccrCID+a03mC8ECI3uM W2nA== X-Gm-Message-State: AOAM531EeahWaXxXnwr2/bNUja62FtmY2y5qgEcFZWhV0ONSe8DdtdGM umSqHgnKPZio1GLh/45JP9fONOFry8+jjFrmQrlD/PlKzF2a1EK87GWBHRmPe3A32W6dEkyjiJR Ht8uNmKyFSpmMaj4QHAtzFVXG7sN/0h7yq+1QGATCkA== X-Received: by 2002:a17:907:33cb:: with SMTP id zk11mr29272731ejb.231.1618938168644; Tue, 20 Apr 2021 10:02:48 -0700 (PDT) X-Received: by 2002:a17:907:33cb:: with SMTP id zk11mr29272709ejb.231.1618938168470; Tue, 20 Apr 2021 10:02:48 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id s20sm16590714edu.93.2021.04.20.10.02.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 10:02:48 -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 6/9] mfd: sec: Remove unused platform data members Date: Tue, 20 Apr 2021 19:02:41 +0200 Message-Id: <20210420170244.13467-2-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210420170244.13467-1-krzysztof.kozlowski@canonical.com> References: <20210420170118.12788-1-krzysztof.kozlowski@canonical.com> <20210420170244.13467-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 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; -- 2.25.1