Received: by 10.192.165.148 with SMTP id m20csp67094imm; Thu, 19 Apr 2018 13:07:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+AgzfmTGN4pXp3Tt81XtXhP38b8IHkFYYCeroKJTk/54YRsP5ZN/b2IBZivQt1PLfATC2P X-Received: by 10.98.160.68 with SMTP id r65mr6857315pfe.235.1524168459092; Thu, 19 Apr 2018 13:07:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524168459; cv=none; d=google.com; s=arc-20160816; b=uBaUFaMqoJNOTkMbK5R6DKManIJ5w7kp3WE4Qjc6lhc6k//h8fwjkXkuQST9MmHTRr pNTcuubMg9Z/qLbFPpEjhzlUsJV5umilQOdSoH2OhPW0xbU7izmiSV85dyOw1rSfYMoJ 6EiFzungq8xJVfP1ymA8pI278zVWq0ssCBl2zFAt83mC2ebPwHnvy4flHLDOh3ulPubn 1ZO3qTmNRiPtVHzekX4iTDQ+hWvHvJxAC8vjUjLUHuVrNpT38CFInR4ZYKa2N0SeKerh CIdTnYfF9J2t0jvh/YSoMRZ4VvQ2CnI7c1sJzqRaI/42sawVWgtcZhDfr+227R7yattk jlSA== 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=tJYpQ/ZjTOINj6jKYCOzkBq5EjSd3sg7dRXPcKSmO2U=; b=WLA6SCFX9kw5jOpN6XyY+elqFy7aTyxSonoT1twsaqjCOUaIg/Q0ZLZyS44Vu3Ft2n EfE326idkd9Pp3cDIgDxFjwkakA/pzKwqZsH/XRf3L5GjtB0/6VSBNF3NqlsYHufPbWI Vf5DgiZ04S/P8iVWhivWsxvqzEVQBOyYRrrKBw6lYkyj9HhMPOSB9wkB/JFmP8F3svYp cWfeW7A6EgVAbF2LsTs4EfhAeeYKoANH3HQ2hKDsqKFAxU+U0Qa+YQOktvnXJb4iZfzG JpIda5OGone51XlndaTkjpYpes3VEnFbUdNB4ZsprbGwYx3ZxEwtl+XE7d6b14tPEN4Q GPaA== 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 p8-v6si3968227plo.295.2018.04.19.13.06.53; Thu, 19 Apr 2018 13:07:39 -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 S1753508AbeDSUAv (ORCPT + 99 others); Thu, 19 Apr 2018 16:00:51 -0400 Received: from sauhun.de ([88.99.104.3]:48050 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753202AbeDSUAs (ORCPT ); Thu, 19 Apr 2018 16:00:48 -0400 Received: from localhost (unknown [46.183.103.8]) by pokefinder.org (Postfix) with ESMTPSA id 5A19A314F63; Thu, 19 Apr 2018 22:00:44 +0200 (CEST) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Peter Korsgaard , Peter Rosin , Jonathan Corbet , Jean Delvare , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/7] i2c: i2c-mux-gpio: move header to platform_data Date: Thu, 19 Apr 2018 22:00:08 +0200 Message-Id: <20180419200015.15095-3-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 This header only contains platform_data. Move it to the proper directory. Signed-off-by: Wolfram Sang --- Documentation/i2c/muxes/i2c-mux-gpio | 4 ++-- MAINTAINERS | 2 +- drivers/i2c/busses/i2c-i801.c | 2 +- drivers/i2c/muxes/i2c-mux-gpio.c | 2 +- include/linux/{ => platform_data}/i2c-mux-gpio.h | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename include/linux/{ => platform_data}/i2c-mux-gpio.h (100%) diff --git a/Documentation/i2c/muxes/i2c-mux-gpio b/Documentation/i2c/muxes/i2c-mux-gpio index 7a8d7d261632..893ecdfe6e43 100644 --- a/Documentation/i2c/muxes/i2c-mux-gpio +++ b/Documentation/i2c/muxes/i2c-mux-gpio @@ -30,12 +30,12 @@ i2c-mux-gpio uses the platform bus, so you need to provide a struct platform_device with the platform_data pointing to a struct i2c_mux_gpio_platform_data with the I2C adapter number of the master bus, the number of bus segments to create and the GPIO pins used -to control it. See include/linux/i2c-mux-gpio.h for details. +to control it. See include/linux/platform_data/i2c-mux-gpio.h for details. E.G. something like this for a MUX providing 4 bus segments controlled through 3 GPIO pins: -#include +#include #include static const unsigned myboard_gpiomux_gpios[] = { diff --git a/MAINTAINERS b/MAINTAINERS index 7aad64b62102..44b4bb5cf94e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5879,7 +5879,7 @@ M: Peter Korsgaard L: linux-i2c@vger.kernel.org S: Supported F: drivers/i2c/muxes/i2c-mux-gpio.c -F: include/linux/i2c-mux-gpio.h +F: include/linux/platform_data/i2c-mux-gpio.h F: Documentation/i2c/muxes/i2c-mux-gpio GENERIC HDLC (WAN) DRIVERS diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index e0d59e9ff3c6..bff160d1ce3f 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -106,7 +106,7 @@ #if IS_ENABLED(CONFIG_I2C_MUX_GPIO) && defined CONFIG_DMI #include -#include +#include #endif /* I801 SMBus address offsets */ diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c index 1a9973ede443..15a7cc0459fb 100644 --- a/drivers/i2c/muxes/i2c-mux-gpio.c +++ b/drivers/i2c/muxes/i2c-mux-gpio.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include diff --git a/include/linux/i2c-mux-gpio.h b/include/linux/platform_data/i2c-mux-gpio.h similarity index 100% rename from include/linux/i2c-mux-gpio.h rename to include/linux/platform_data/i2c-mux-gpio.h -- 2.11.0