Received: by 10.192.165.148 with SMTP id m20csp62881imm; Thu, 19 Apr 2018 13:03:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+20FBtWrXQrIfUpfAjbyYb3jP2F1ZM5LLk0Z/pVbkkrKk6qrMWNF2jE2Q2rUle+oP52e1H X-Received: by 2002:a17:902:5801:: with SMTP id m1-v6mr7464139pli.325.1524168199030; Thu, 19 Apr 2018 13:03:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524168198; cv=none; d=google.com; s=arc-20160816; b=aATpTl/F4Mq+xf9Fo1bORthXrVlNS9WCwVHCmhN34NRvEiNmIqdLIVFHorDT+gmAK+ mNkvmXMdO8S48egCWnk/kqhOJqLqfABXyZ/aXm4JPhiVq+14bmUnGYciu8lE9XRDueSk 6zuM+bThj9JKZdf+6sY4bNa+L/ebHNsbuDFNEa5dYdEhhWrm+XK1ITsMxWh8w1O4IRDn kufZQpDS+uA/FPEOXscyXHWCS8m1uLfU4TFI+G8O4ZuJ3wISFMpC0xTtzaf6Bvx8h5o8 Ft1XbhMEm7av/i0vP4Yr8K0DYszp1ZIa1hSfc4KwBlTWEhnarpdIXy5vnYFgqtctCTG5 pAsg== 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:arc-authentication-results; bh=kpD6Yzc1td1QSKLAeUS5uNnfRNDWq9vrYe85jA/LIzU=; b=h+tsD7WTNxTTUQwY4Bf/JkQ+gg59zIAlF39I5s4Jr2tAgAaxMVtWaxCJw+NdAX25tf 3ou8QGnSid84DN3Nzj4HAJB0zFN9mfNOCIrOtg2VBFfZ7jc6VkcZ2GOw3uSbywxrMN4A bw8BpNCNBBqytqYmoXoBz1e9Z/459dIf/OfuXFoXR/37eGi7XXnIb83wMG36DSn0Vq1/ ZnX/hfS5d+7T70PeeadjUpR6DsXL4svs8ZLUE/Me1aV9v0F0aqhYcfIkHFt7u+0/5XCd rXWqMCUSqrmdQj5gLCluI/6AlHC/j2NMKKMg2QneM9E5Oqr8W58D5Ccyvf3v3wJNe7Gg Ztzg== 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 r17si3578086pge.5.2018.04.19.13.02.57; Thu, 19 Apr 2018 13:03:18 -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 S1753708AbeDSUB0 (ORCPT + 99 others); Thu, 19 Apr 2018 16:01:26 -0400 Received: from sauhun.de ([88.99.104.3]:48092 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753583AbeDSUBC (ORCPT ); Thu, 19 Apr 2018 16:01:02 -0400 Received: from localhost (unknown [46.183.103.8]) by pokefinder.org (Postfix) with ESMTPSA id EC6FB314F69; Thu, 19 Apr 2018 22:00:59 +0200 (CEST) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Vladimir Zapolskiy , Sylvain Lemieux , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 7/7] i2c: pnx: move header into the driver Date: Thu, 19 Apr 2018 22:00:13 +0200 Message-Id: <20180419200015.15095-8-wsa@the-dreams.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180419200015.15095-1-wsa@the-dreams.de> References: <20180419200015.15095-1-wsa@the-dreams.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are no platform_data users anymore. Move the structs into the driver. Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-pnx.c | 21 ++++++++++++++++++++- include/linux/i2c-pnx.h | 38 -------------------------------------- 2 files changed, 20 insertions(+), 39 deletions(-) delete mode 100644 include/linux/i2c-pnx.h diff --git a/drivers/i2c/busses/i2c-pnx.c b/drivers/i2c/busses/i2c-pnx.c index a542041df0cd..6e0e546ef83f 100644 --- a/drivers/i2c/busses/i2c-pnx.c +++ b/drivers/i2c/busses/i2c-pnx.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include @@ -29,6 +28,26 @@ #define I2C_PNX_SPEED_KHZ_DEFAULT 100 #define I2C_PNX_REGION_SIZE 0x100 +struct i2c_pnx_mif { + int ret; /* Return value */ + int mode; /* Interface mode */ + struct completion complete; /* I/O completion */ + struct timer_list timer; /* Timeout */ + u8 * buf; /* Data buffer */ + int len; /* Length of data buffer */ + int order; /* RX Bytes to order via TX */ +}; + +struct i2c_pnx_algo_data { + void __iomem *ioaddr; + struct i2c_pnx_mif mif; + int last; + struct clk *clk; + struct i2c_adapter adapter; + int irq; + u32 timeout; +}; + enum { mstatus_tdi = 0x00000001, mstatus_afi = 0x00000002, diff --git a/include/linux/i2c-pnx.h b/include/linux/i2c-pnx.h deleted file mode 100644 index 5388326fbbff..000000000000 --- a/include/linux/i2c-pnx.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Header file for I2C support on PNX010x/4008. - * - * Author: Dennis Kovalev - * - * 2004-2006 (c) MontaVista Software, Inc. This file is licensed under - * the terms of the GNU General Public License version 2. This program - * is licensed "as is" without any warranty of any kind, whether express - * or implied. - */ - -#ifndef __I2C_PNX_H__ -#define __I2C_PNX_H__ - -struct platform_device; -struct clk; - -struct i2c_pnx_mif { - int ret; /* Return value */ - int mode; /* Interface mode */ - struct completion complete; /* I/O completion */ - struct timer_list timer; /* Timeout */ - u8 * buf; /* Data buffer */ - int len; /* Length of data buffer */ - int order; /* RX Bytes to order via TX */ -}; - -struct i2c_pnx_algo_data { - void __iomem *ioaddr; - struct i2c_pnx_mif mif; - int last; - struct clk *clk; - struct i2c_adapter adapter; - int irq; - u32 timeout; -}; - -#endif /* __I2C_PNX_H__ */ -- 2.11.0