diff mbox series

[2/2] i2c: sandbox: remove code snippet from Kconfig help

Message ID 1486784395-19609-3-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit c77c7db58ea833b442e09a794de0d3c8bba2bfe3
Headers show
Series kconfig resync with Linux 4.10 | expand

Commit Message

Masahiro Yamada Feb. 11, 2017, 3:39 a.m. UTC
With the Kconfig re-sync with Linux 4.10, characters such as
'}', ';' in Kconfig help message cause warnings:

$ make defconfig
*** Default configuration is based on 'sandbox_defconfig'
drivers/i2c/Kconfig:132:warning: ignoring unsupported character '}'
drivers/i2c/Kconfig:132:warning: ignoring unsupported character ';'

Drop the Device Tree fragment from the help.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

 drivers/i2c/Kconfig | 23 +----------------------
 1 file changed, 1 insertion(+), 22 deletions(-)

-- 
2.7.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Comments

Heiko Schocher Feb. 13, 2017, 7:57 a.m. UTC | #1
Hello Masahiro,

Am 11.02.2017 um 04:39 schrieb Masahiro Yamada:
> With the Kconfig re-sync with Linux 4.10, characters such as

> '}', ';' in Kconfig help message cause warnings:

>

> $ make defconfig

> *** Default configuration is based on 'sandbox_defconfig'

> drivers/i2c/Kconfig:132:warning: ignoring unsupported character '}'

> drivers/i2c/Kconfig:132:warning: ignoring unsupported character ';'

>

> Drop the Device Tree fragment from the help.

>

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

> ---

>

>   drivers/i2c/Kconfig | 23 +----------------------

>   1 file changed, 1 insertion(+), 22 deletions(-)


Thanks!

Acked-by: Heiko Schocher <hs@denx.de>


bye,
Heiko
>

> diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig

> index 71cc173..39f62da 100644

> --- a/drivers/i2c/Kconfig

> +++ b/drivers/i2c/Kconfig

> @@ -132,28 +132,7 @@ config SYS_I2C_SANDBOX

>   	help

>   	  Enable I2C support for sandbox. This is an emulation of a real I2C

>   	  bus. Devices can be attached to the bus using the device tree

> -	  which specifies the driver to use. As an example, see this device

> -	  tree fragment from sandbox.dts. It shows that the I2C bus has a

> -	  single EEPROM at address 0x2c (7-bit address) which is emulated by

> -	  the driver for "sandbox,i2c-eeprom", which is in

> -	  drivers/misc/i2c_eeprom_emul.c.

> -

> -	  i2c@0 {

> -		#address-cells = <1>;

> -		#size-cells = <0>;

> -		reg = <0>;

> -		compatible = "sandbox,i2c";

> -		clock-frequency = <400000>;

> -		eeprom@2c {

> -			reg = <0x2c>;

> -			compatible = "i2c-eeprom";

> -			emul {

> -				compatible = "sandbox,i2c-eeprom";

> -				sandbox,filename = "i2c.bin";

> -				sandbox,size = <128>;

> -			};

> -		};

> -	};

> +	  which specifies the driver to use.  See sandbox.dts as an example.

>

>   config SYS_I2C_S3C24X0

>   	bool "Samsung I2C driver"

>


-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Tom Rini Feb. 13, 2017, 12:19 p.m. UTC | #2
On Sat, Feb 11, 2017 at 12:39:55PM +0900, Masahiro Yamada wrote:

> With the Kconfig re-sync with Linux 4.10, characters such as

> '}', ';' in Kconfig help message cause warnings:

> 

> $ make defconfig

> *** Default configuration is based on 'sandbox_defconfig'

> drivers/i2c/Kconfig:132:warning: ignoring unsupported character '}'

> drivers/i2c/Kconfig:132:warning: ignoring unsupported character ';'

> 

> Drop the Device Tree fragment from the help.

> 

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>


Applied to u-boot/master, thanks!

-- 
Tom
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
diff mbox series

Patch

diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index 71cc173..39f62da 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -132,28 +132,7 @@  config SYS_I2C_SANDBOX
 	help
 	  Enable I2C support for sandbox. This is an emulation of a real I2C
 	  bus. Devices can be attached to the bus using the device tree
-	  which specifies the driver to use. As an example, see this device
-	  tree fragment from sandbox.dts. It shows that the I2C bus has a
-	  single EEPROM at address 0x2c (7-bit address) which is emulated by
-	  the driver for "sandbox,i2c-eeprom", which is in
-	  drivers/misc/i2c_eeprom_emul.c.
-
-	  i2c@0 {
-		#address-cells = <1>;
-		#size-cells = <0>;
-		reg = <0>;
-		compatible = "sandbox,i2c";
-		clock-frequency = <400000>;
-		eeprom@2c {
-			reg = <0x2c>;
-			compatible = "i2c-eeprom";
-			emul {
-				compatible = "sandbox,i2c-eeprom";
-				sandbox,filename = "i2c.bin";
-				sandbox,size = <128>;
-			};
-		};
-	};
+	  which specifies the driver to use.  See sandbox.dts as an example.
 
 config SYS_I2C_S3C24X0
 	bool "Samsung I2C driver"