Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2471657pxb; Tue, 9 Mar 2021 03:28:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzx4i+OB6UO8HQEfNJ+07jgD8B0PO7Sy3rcS3YpuGIl9O6fGnGLWOHx6otsk7dG6X7Kd2XG X-Received: by 2002:a17:906:2b9a:: with SMTP id m26mr19320660ejg.526.1615289284894; Tue, 09 Mar 2021 03:28:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615289284; cv=none; d=google.com; s=arc-20160816; b=c2WXvRqZ+tParPKaAskvp6lsoKDdSR+IpEJNQVWicOXu7h7iq1+HBkX2C4Za42rE9q ajxvrYuiou4bWg7sDPEt5PW+wI7PGctV3AoqfTZ2jmBwBhGsHImeG/eXaI6r1eSlxusF I178OI21k5G67qMBmF3RQudVBPbCUrToe4CY8ZAKRxtUKAtq9LjBo1brhQGkwzOIKA7e iXcQgWKBqNoDEq1SETVz+6RiGACiU3HDufW3suBi6DRErD0754YRTCJ7H3i52A1gGamk SqzR4s5m+IUIFzp+Lyiy/u0LlYc5RicKpzfbLCfEecMKsW+bfbzunKyZwMYbnOQx2VC8 gjEQ== 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 :ironport-sdr:ironport-sdr; bh=BGuztjJN1KNd5qO3SikWqe8qZ6PfCtVpD7Rd2N+ztR4=; b=xnOXBzVCgWMHd51/cb29eR7fkpbIewN8btG1JmVQECdoku4ZwltQPcH5IzH7AMwip1 xh+pnwTdLzBNsFkZVWXyF+N0eH93ODX8zkDspNxz22+tJfleIrhl13/wKo9h/IaHp0RT 1FtOQo8Q+BQnNO5vqEWpvM9/W66bATRn3p3BR5Mvf5QGGxeyKF9rMi77gyggCTwtz8xt 2bdtRZT5z9JhR9e1NUUGFSHOq7VnIgmZn+Sj7ftbo0RW1Cm0/d1bvJ3WekzSvmpuEvPG y/KzSXBmFEQmPMdG08mkJjySDwWYUw5+UtOplgL+KqkY8YYTUZbpYqlS9Nz/qNaNosZk evgQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n27si9142808ejs.743.2021.03.09.03.27.41; Tue, 09 Mar 2021 03:28:04 -0800 (PST) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230403AbhCILYr (ORCPT + 99 others); Tue, 9 Mar 2021 06:24:47 -0500 Received: from mga17.intel.com ([192.55.52.151]:51214 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230156AbhCILYW (ORCPT ); Tue, 9 Mar 2021 06:24:22 -0500 IronPort-SDR: efmk/ff4BK4aslMCYjfPlhFPg0GDCZSdAkOBPy3u/hRkZbw501OxhTFmnT6Npu/d+aedQ7LtRA 4Fnio8mrZQvw== X-IronPort-AV: E=McAfee;i="6000,8403,9917"; a="168123110" X-IronPort-AV: E=Sophos;i="5.81,234,1610438400"; d="scan'208";a="168123110" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2021 03:24:20 -0800 IronPort-SDR: lUf7+Y9RLzYmA/19wzoLeV8blIQZjOfvCvAi76N3KClxXZSWxDVGT2ffL0aduGfseEELE2eYtf UAcN7of1ggVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,234,1610438400"; d="scan'208";a="371509124" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga006.jf.intel.com with ESMTP; 09 Mar 2021 03:24:18 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 836CC565; Tue, 9 Mar 2021 13:24:18 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-kernel@vger.kernel.org Cc: Rodolfo Giometti , Ryan Govostes , Greg Kroah-Hartman Subject: [PATCH resend v1 4/7] pps: clients: gpio: Get rid of legacy platform data Date: Tue, 9 Mar 2021 13:24:00 +0200 Message-Id: <20210309112403.36633-4-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210309112403.36633-1-andriy.shevchenko@linux.intel.com> References: <20210309112403.36633-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Platform data is a legacy interface to supply device properties to the driver. In this case we even don't have in-kernel users for it. Just remove it for good. Signed-off-by: Andy Shevchenko --- drivers/pps/clients/pps-gpio.c | 17 +++-------------- include/linux/pps-gpio.h | 19 ------------------- 2 files changed, 3 insertions(+), 33 deletions(-) delete mode 100644 include/linux/pps-gpio.h diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clients/pps-gpio.c index dc9ed6fc3dae..291240dce79e 100644 --- a/drivers/pps/clients/pps-gpio.c +++ b/drivers/pps/clients/pps-gpio.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -164,7 +163,6 @@ static int pps_gpio_probe(struct platform_device *pdev) struct pps_gpio_device_data *data; int ret; int pps_default_params; - const struct pps_gpio_platform_data *pdata = pdev->dev.platform_data; /* allocate space for device info */ data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); @@ -173,18 +171,9 @@ static int pps_gpio_probe(struct platform_device *pdev) platform_set_drvdata(pdev, data); /* GPIO setup */ - if (pdata) { - data->gpio_pin = pdata->gpio_pin; - data->echo_pin = pdata->echo_pin; - - data->assert_falling_edge = pdata->assert_falling_edge; - data->capture_clear = pdata->capture_clear; - data->echo_active_ms = pdata->echo_active_ms; - } else { - ret = pps_gpio_setup(pdev); - if (ret) - return -EINVAL; - } + ret = pps_gpio_setup(pdev); + if (ret) + return -EINVAL; /* IRQ setup */ ret = gpiod_to_irq(data->gpio_pin); diff --git a/include/linux/pps-gpio.h b/include/linux/pps-gpio.h deleted file mode 100644 index 7bf49908be06..000000000000 --- a/include/linux/pps-gpio.h +++ /dev/null @@ -1,19 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* - * pps-gpio.h -- PPS client for GPIOs - * - * Copyright (C) 2011 James Nuss - */ - -#ifndef _PPS_GPIO_H -#define _PPS_GPIO_H - -struct pps_gpio_platform_data { - struct gpio_desc *gpio_pin; - struct gpio_desc *echo_pin; - bool assert_falling_edge; - bool capture_clear; - unsigned int echo_active_ms; -}; - -#endif /* _PPS_GPIO_H */ -- 2.30.1