From patchwork Sun Sep 17 15:01:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TWljaGHFgiBNaXJvc8WCYXc=?= X-Patchwork-Id: 9954849 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0B7BA6039A for ; Sun, 17 Sep 2017 15:01:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB70728B02 for ; Sun, 17 Sep 2017 15:01:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E05AE28B0C; Sun, 17 Sep 2017 15:01:13 +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=-6.0 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham 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 6704728B02 for ; Sun, 17 Sep 2017 15:01:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751633AbdIQPBI (ORCPT ); Sun, 17 Sep 2017 11:01:08 -0400 Received: from 78-11-180-123.static.ip.netia.com.pl ([78.11.180.123]:60078 "EHLO rere.qmqm.pl" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751631AbdIQPBG (ORCPT ); Sun, 17 Sep 2017 11:01:06 -0400 Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 3xwC4w5ftGz93; Sun, 17 Sep 2017 17:01:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1505660464; bh=kh1gf/DOHLkq5YWhYPfzf66Mu5NdFsA34x1qPTEG/1Q=; h=Date:In-Reply-To:References:From:Subject:To:Cc:From; b=ZoL1/yeTBqs+iGeUkA7YTLLte4guFJyjnz69HWMyHd+dy6RxRcJ3qOLrlfIEbvGEJ bkRESFILbQN4C0ZU0k3i6hYQfA/SAHje6OqgZ+YlKEehEu50PLFwdHPcB3bGMP4Zon A3RQeseOX/QHAMmbOIYCKVF2QJuC8hTrw097/RshqMg7oOCDuEJoL9M86vJHOb3qbK gecKHxufMmuS5wsPdsPSeuEKxjVgPVvG66+hcCvU4PEVm7wejuYK8vjE1EgW3tRUCV awccYeRAt3KISm6TKLYNxS5NShTxTz17W446S24akSLbY9G6ULD+xy60dCuXZTmBbP x6ugK+dH7oDig== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.99.2 at rere Date: Sun, 17 Sep 2017 17:01:04 +0200 Message-Id: <7bab949c05f3fb70014bda990d7217ac98b08cbd.1505660069.git.mirq-linux@rere.qmqm.pl> In-Reply-To: References: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH v3 7/8] iio: accel: kxcjk1013: remove unused platform data struct MIME-Version: 1.0 To: Jonathan Cameron , Srinivas Pandruvada Cc: linux-iio@vger.kernel.org, Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP kxcjk1013's platform data has no in-kernel users. Remove it. Signed-off-by: Michał Mirosław --- drivers/iio/accel/kxcjk-1013.c | 14 +------------- include/linux/iio/accel/kxcjk_1013.h | 22 ---------------------- 2 files changed, 1 insertion(+), 35 deletions(-) diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c index 8892dc5d2422..7c010892945c 100644 --- a/drivers/iio/accel/kxcjk-1013.c +++ b/drivers/iio/accel/kxcjk-1013.c @@ -29,7 +29,6 @@ #include #include #include -#include #define KXCJK1013_DRV_NAME "kxcjk1013" #define KXCJK1013_IRQ_NAME "kxcjk1013_event" @@ -144,7 +143,6 @@ struct kxcjk1013_data { u8 range; int wake_thres; int wake_dur; - bool active_high_intr; bool dready_trigger_on; int ev_enable_state; bool motion_trigger_on; @@ -402,10 +400,7 @@ static int kxcjk1013_chip_init(struct kxcjk1013_data *data) return ret; } - if (data->active_high_intr) - ret |= KXCJK1013_REG_INT_CTRL1_BIT_IEA; - else - ret &= ~KXCJK1013_REG_INT_CTRL1_BIT_IEA; + ret |= KXCJK1013_REG_INT_CTRL1_BIT_IEA; ret = i2c_smbus_write_byte_data(data->client, KXCJK1013_REG_INT_CTRL1, ret); @@ -1264,7 +1259,6 @@ static int kxcjk1013_probe(struct i2c_client *client, { struct kxcjk1013_data *data; struct iio_dev *indio_dev; - struct kxcjk_1013_platform_data *pdata; const char *name; int ret; @@ -1276,12 +1270,6 @@ static int kxcjk1013_probe(struct i2c_client *client, i2c_set_clientdata(client, indio_dev); data->client = client; - pdata = dev_get_platdata(&client->dev); - if (pdata) - data->active_high_intr = pdata->active_high_intr; - else - data->active_high_intr = true; /* default polarity */ - if (id) { data->chipset = (enum kx_chipset)(id->driver_data); name = id->name; diff --git a/include/linux/iio/accel/kxcjk_1013.h b/include/linux/iio/accel/kxcjk_1013.h deleted file mode 100644 index fd1d540ea62d..000000000000 --- a/include/linux/iio/accel/kxcjk_1013.h +++ /dev/null @@ -1,22 +0,0 @@ -/* - * KXCJK-1013 3-axis accelerometer Interface - * Copyright (c) 2014, Intel Corporation. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - */ - -#ifndef __IIO_KXCJK_1013_H__ -#define __IIO_KXCJK_1013_H__ - -struct kxcjk_1013_platform_data { - bool active_high_intr; -}; - -#endif