Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp546602img; Mon, 18 Mar 2019 08:51:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb2Wfs7tjJa6hncaxvl887U97LOFV5TD4GUjoSvhu4gsnwPX64tERqnJ7HdTR3/lNZBnx1 X-Received: by 2002:a62:70c9:: with SMTP id l192mr19903365pfc.207.1552924267141; Mon, 18 Mar 2019 08:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552924267; cv=none; d=google.com; s=arc-20160816; b=NBdF1JTqJqaIqqSe8ZExofINGrV5XzPp1mAougU7yv/Y4/EwjoUs7E1To5Lz0ZbpaH ro/BpxYopWSeVmv3es0Bc85WN4djL+CJhH0wur3waAcQrEZh2YfafmLhhdydACFEg7Nd O0COx8y3Y60URGcb+m25tx72kykgWT4zh/DTTpIFoUzAmyzgfjR0bPYanZf5acrMlec8 EBw+8pzOv/V+qgr2VMcyUBtg/FNQykyMw+7Kyw/ZliQPRYrA2CyGkDxf8DoSSGU/idFY k5EzLyGPG5j9e47X9Nd3fdW+WMp6EmJKd78M5ISkLo463/I0riDzcw12Ofl+qSWtbTke u/qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=QFQX7vrrQpIbVq+0Y5MPoQsFmZMQXyFMkFuE4L/x2wA=; b=aFgNfO+4pbepWWxf5uTdxcWlYI6ZMFiUXPL77XFaGl0824FVZZiZIePS57XB1Em05M dvaF+J+whZDTLgOCaAE+L3urKH+Uis9TXya/3F0mvhj2JbUyAXNpQNveuBzt08BZrrZj aSV28j6SzPIY0bSgOB234iKxclxjuDess8gBF1+3c07vOzOmmUm/GuIKMMmbwS5BD5DZ kWNW2j8tZrNpEImPBpOGQDFubHgmQFk2S1WJJP68PzvhqvHMh4C1ax1euz13Su7njMHu ViQ/DZhLOdIdN3RP0XA/O05wHKswAvr45L/RbHOmL0ohO5JqSV4lD5dhJYu1e7Xg2uzc s3ZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si9937781pgo.41.2019.03.18.08.50.52; Mon, 18 Mar 2019 08:51:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727495AbfCRPs7 (ORCPT + 99 others); Mon, 18 Mar 2019 11:48:59 -0400 Received: from sauhun.de ([88.99.104.3]:36826 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727134AbfCRPs6 (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 D84DF4A1346; Mon, 18 Mar 2019 16:48:56 +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 , Dmitry Torokhov , linux-input@vger.kernel.org Subject: [PATCH 2/6] input: da9063_onkey: remove platform_data support Date: Mon, 18 Mar 2019 16:47:54 +0100 Message-Id: <20190318154759.21978-3-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190318154759.21978-1-wsa+renesas@sang-engineering.com> References: <20190318154759.21978-1-wsa+renesas@sang-engineering.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are no in-kernel users anymore, so remove this outdated interface. Signed-off-by: Wolfram Sang --- drivers/input/misc/da9063_onkey.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/input/misc/da9063_onkey.c b/drivers/input/misc/da9063_onkey.c index 3e9c353d82ef..e3a273c74123 100644 --- a/drivers/input/misc/da9063_onkey.c +++ b/drivers/input/misc/da9063_onkey.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -201,8 +200,6 @@ static void da9063_cancel_poll(void *data) static int da9063_onkey_probe(struct platform_device *pdev) { - struct da9063 *da9063 = dev_get_drvdata(pdev->dev.parent); - struct da9063_pdata *pdata = dev_get_platdata(da9063->dev); struct da9063_onkey *onkey; const struct of_device_id *match; int irq; @@ -229,12 +226,8 @@ static int da9063_onkey_probe(struct platform_device *pdev) return -ENXIO; } - if (pdata) - onkey->key_power = pdata->key_power; - else - onkey->key_power = - !of_property_read_bool(pdev->dev.of_node, - "dlg,disable-key-power"); + onkey->key_power = !of_property_read_bool(pdev->dev.of_node, + "dlg,disable-key-power"); onkey->input = devm_input_allocate_device(&pdev->dev); if (!onkey->input) { -- 2.11.0