From patchwork Mon Mar 18 15:47:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 10857935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 30D031575 for ; Mon, 18 Mar 2019 15:49:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1ECC222A6F for ; Mon, 18 Mar 2019 15:49:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12C5B284F1; Mon, 18 Mar 2019 15:49:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7B7922A6F for ; Mon, 18 Mar 2019 15:49:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727203AbfCRPs6 (ORCPT ); Mon, 18 Mar 2019 11:48:58 -0400 Received: from sauhun.de ([88.99.104.3]:36790 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726808AbfCRPs6 (ORCPT ); Mon, 18 Mar 2019 11:48:58 -0400 Received: from localhost (p54B330C6.dip0.t-ipconnect.de [84.179.48.198]) by pokefinder.org (Postfix) with ESMTPSA id 41E752C2817; Mon, 18 Mar 2019 16:48:55 +0100 (CET) From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Lee Jones , Mark Brown , Support Opensource , Wolfram Sang , linux-input@vger.kernel.org Subject: [PATCH 0/6] mfd: da9063: remove platform_data Date: Mon, 18 Mar 2019 16:47:52 +0100 Message-Id: <20190318154759.21978-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When working with this driver while debugging something else, I noticed that there are no in-kernel users of platform_data anymore. Removing the support simplifies the code and gets rid of quite some lines. The biggest refactoring went to the regulator driver which could maybe benefit from more refactorization. However, there is no in-kernel user of that driver, so no testing. I left it at this stage. I think the changes are still at a level where review and build-testing will give enough confidence. Besides the regulator thing, it was tested on a Renesas Lager board (R-Car H2). No regressions encountered. buildbot was happy, too. The patches are based on v5.1-rc1. I'd vote for all of them going through the MFD tree. Looking forward to comments! Wolfram Wolfram Sang (6): regulator: da9063: remove platform_data support input: da9063_onkey: remove platform_data support mfd: da9063: remove platform_data support regulator: da9063: move definitions out of a header into the driver mfd: da9063: remove leftover platform_data definitions regulator: da9063: platform_data is gone, depend on OF drivers/input/misc/da9063_onkey.c | 11 +--- drivers/mfd/da9063-core.c | 20 +----- drivers/mfd/da9063-i2c.c | 1 - drivers/mfd/da9063-irq.c | 1 - drivers/regulator/Kconfig | 2 +- drivers/regulator/da9063-regulator.c | 61 +++++++++++++------ include/linux/mfd/da9063/pdata.h | 114 ----------------------------------- 7 files changed, 49 insertions(+), 161 deletions(-) delete mode 100644 include/linux/mfd/da9063/pdata.h