ASoC: codecs: Use IS_ENABLED() macro
Subsystems (6)
cover ASoC: codecs: Use IS_ENABLED() macro
Using the IS_ENABLED() macro can make the code shorter and simpler.
PATCH 1/18 ASoC: cs4271: Use IS_ENABLED() macro
Using the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/cs4271.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/codecs/cs4271.c +4 -4
@@ -675,7 +675,7 @@ static struct spi_driver cs4271_spi_driver = { };#endif /* defined(CONFIG_SPI_MASTER) */ -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static const struct i2c_device_id cs4271_i2c_id[] = { {"cs4271" ,0 }, {}
@@ -728,7 +728,7 @@ static struct i2c_driver cs4271_i2c_driver = { .probe = cs4271_i2c_probe, .remove = cs4271_i2c_remove, }; -#endif /* defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) */ +#endif /* IS_ENABLED(CONFIG_I2C) */ /* * We only register our serial bus driver here without
@@ -741,7 +741,7 @@ static int __init cs4271_modinit(void) {int ret; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&cs4271_i2c_driver);if (ret) {pr_err ("Failed to register CS4271 I2C driver: %d\n" , ret);
@@ -767,7 +767,7 @@ static void __exit cs4271_modexit(void)spi_unregister_driver (&cs4271_spi_driver);#endif -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&cs4271_i2c_driver);#endif }
Signature · 1 line
1.8.1.2
Re: [PATCH 01/18] ASoC: cs4271: Use IS_ENABLED() macro
Quoted 1 line · Fabio Estevam
Using the
IS_ENABLED()macro can make the code shorter and simpler.
Applied, thanks.
PATCH 2/18 ASoC: cs42l52: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/cs42l52.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/cs42l52.c +2 -2
@@ -50,7 +50,7 @@ struct cs42l52_private {u8 mclksel;u32 mclk;u8 flags; -#if defined(CONFIG_INPUT ) || defined(CONFIG_INPUT_MODULE ) +#if IS_ENABLED (CONFIG_INPUT )struct input_dev *beep;struct work_struct beep_work;int beep_rate;
@@ -953,7 +953,7 @@ static int cs42l52_resume(struct snd_soc_codec *codec)return 0 ; } -#if defined(CONFIG_INPUT ) || defined(CONFIG_INPUT_MODULE ) +#if IS_ENABLED (CONFIG_INPUT )static int beep_rates[] = {261 ,522 ,585 ,667 ,706 ,774 ,889 ,1000 , 1043, 1200, 1333, 1412, 1600, 1714, 2000, 2182
Signature · 1 line
1.8.1.2
Re: [PATCH 02/18] ASoC: cs42l52: Use IS_ENABLED() macro
Quoted 1 line · Fabio Estevam
Using the
IS_ENABLED()macro can make the code shorter and simpler.
Applied, thanks.
PATCH 3/18 ASoC: da7210: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/da7210.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/da7210.c +3 -3
@@ -1188,7 +1188,7 @@ static struct snd_soc_codec_driver soc_codec_dev_da7210 = { .num_dapm_routes = ARRAY_SIZE(da7210_audio_map), }; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) static struct reg_default da7210_regmap_i2c_patch[] = {
@@ -1362,7 +1362,7 @@ static struct spi_driver da7210_spi_driver = {static int __init da7210_modinit (void ) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&da7210_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
@@ -1378,7 +1378,7 @@ module_init(da7210_modinit); static void __exit da7210_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&da7210_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
Signature · 1 line
1.8.1.2
PATCH 3/18 ASoC: da7210: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/da7210.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/da7210.c +3 -3
@@ -1188,7 +1188,7 @@ static struct snd_soc_codec_driver soc_codec_dev_da7210 = { .num_dapm_routes = ARRAY_SIZE(da7210_audio_map), }; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) static struct reg_default da7210_regmap_i2c_patch[] = {
@@ -1362,7 +1362,7 @@ static struct spi_driver da7210_spi_driver = {static int __init da7210_modinit (void ) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&da7210_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
@@ -1378,7 +1378,7 @@ module_init(da7210_modinit); static void __exit da7210_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&da7210_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
Signature · 1 line
1.8.1.2
PATCH 4/18 ASoC: ssm2602: Use IS_ENABLED() macro
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
Using the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/ssm2602.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/ssm2602.c +3 -3
@@ -730,7 +730,7 @@ static struct spi_driver ssm2602_spi_driver = { };#endif -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )/* * ssm2602 2 wire address is determined by GPIO5 * state during powerup.
@@ -797,7 +797,7 @@ static int __init ssm2602_modinit(void)return ret;#endif -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&ssm2602_i2c_driver);if (ret)return ret;
@@ -813,7 +813,7 @@ static void __exit ssm2602_exit(void)spi_unregister_driver (&ssm2602_spi_driver);#endif -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&ssm2602_i2c_driver);#endif }
Signature · 1 line
1.8.1.2
Re: [PATCH 04/18] ASoC: ssm2602: Use IS_ENABLED() macro
Quoted 1 line · Fabio Estevam
From: Fabio Estevam <[email protected]>
Applied, thanks.
PATCH 5/18 ASoC: wm8731: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/wm8731.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8731.c +3 -3
@@ -732,7 +732,7 @@ static struct spi_driver wm8731_spi_driver = { };#endif /* CONFIG_SPI_MASTER */ -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8731_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -791,7 +791,7 @@ static struct i2c_driver wm8731_i2c_driver = {static int __init wm8731_modinit (void ) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8731_i2c_driver);if (ret !=0 ) { printk(KERN_ERR "Failed to register WM8731 I2C driver: %d\n",
@@ -811,7 +811,7 @@ module_init(wm8731_modinit); static void __exit wm8731_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8731_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
Signature · 1 line
1.8.1.2
Re: [PATCH 05/18] ASoC: wm8731: Use IS_ENABLED() macro
Quoted 1 line · Fabio Estevam
Using the
IS_ENABLED()macro can make the code shorter and simpler.
Applied, thanks.
PATCH 6/18 ASoC: wm8737: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/wm8737.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8737.c +3 -3
@@ -644,7 +644,7 @@ static const struct regmap_config wm8737_regmap = { .volatile_reg = wm8737_volatile, }; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8737_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -758,7 +758,7 @@ static struct spi_driver wm8737_spi_driver = {static int __init wm8737_modinit (void ) {int ret; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8737_i2c_driver);if (ret !=0 ) { printk(KERN_ERR "Failed to register WM8737 I2C driver: %d\n",
@@ -781,7 +781,7 @@ static void __exit wm8737_exit(void)#if defined(CONFIG_SPI_MASTER )spi_unregister_driver (&wm8737_spi_driver);#endif -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8737_i2c_driver);#endif }
Signature · 1 line
1.8.1.2
Re: [PATCH 06/18] ASoC: wm8737: Use IS_ENABLED() macro
Quoted 1 line · Fabio Estevam
Using the
IS_ENABLED()macro can make the code shorter and simpler.
Applied, thanks.
PATCH 7/18 ASoC:: wm8741: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/wm8741.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8741.c +3 -3
@@ -500,7 +500,7 @@ static const struct regmap_config wm8741_regmap = { .readable_reg = wm8741_readable, }; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8741_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -617,7 +617,7 @@ static int __init wm8741_modinit(void) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8741_i2c_driver);if (ret !=0 )pr_err ("Failed to register WM8741 I2C driver: %d\n" , ret);
@@ -639,7 +639,7 @@ static void __exit wm8741_exit(void)#if defined(CONFIG_SPI_MASTER )spi_unregister_driver (&wm8741_spi_driver);#endif -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8741_i2c_driver);#endif }
Signature · 1 line
1.8.1.2
Re: [PATCH 07/18] ASoC:: wm8741: Use IS_ENABLED() macro
Quoted 1 line · Fabio Estevam
Using the
IS_ENABLED()macro can make the code shorter and simpler.
Applied, thanks.
PATCH 8/18 ASoC:: wm8750: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/wm8750.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8750.c +3 -3
@@ -816,7 +816,7 @@ static struct spi_driver wm8750_spi_driver = { };#endif /* CONFIG_SPI_MASTER */ -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8750_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -868,7 +868,7 @@ static struct i2c_driver wm8750_i2c_driver = {static int __init wm8750_modinit (void ) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8750_i2c_driver);if (ret !=0 ) { printk(KERN_ERR "Failed to register wm8750 I2C driver: %d\n",
@@ -888,7 +888,7 @@ module_init(wm8750_modinit); static void __exit wm8750_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8750_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
Signature · 1 line
1.8.1.2
Re: [PATCH 08/18] ASoC:: wm8750: Use IS_ENABLED() macro
Quoted 1 line · Fabio Estevam
Using the
IS_ENABLED()macro can make the code shorter and simpler.
Applied, thanks.
PATCH 9/18 ASoC: wm8753: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/wm8753.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8753.c +3 -3
@@ -1596,7 +1596,7 @@ static struct spi_driver wm8753_spi_driver = { };#endif /* CONFIG_SPI_MASTER */ -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8753_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -1653,7 +1653,7 @@ static struct i2c_driver wm8753_i2c_driver = {static int __init wm8753_modinit (void ) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8753_i2c_driver);if (ret !=0 ) { printk(KERN_ERR "Failed to register wm8753 I2C driver: %d\n",
@@ -1673,7 +1673,7 @@ module_init(wm8753_modinit); static void __exit wm8753_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8753_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
Signature · 1 line
1.8.1.2
Re: [PATCH 09/18] ASoC: wm8753: Use IS_ENABLED() macro
Quoted 1 line · Fabio Estevam
Using the
IS_ENABLED()macro can make the code shorter and simpler.
Applied, thanks.
PATCH 10/18 ASoC: wm8776: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/wm8776.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8776.c +3 -3
@@ -532,7 +532,7 @@ static struct spi_driver wm8776_spi_driver = { };#endif /* CONFIG_SPI_MASTER */ -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8776_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -584,7 +584,7 @@ static struct i2c_driver wm8776_i2c_driver = {static int __init wm8776_modinit (void ) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8776_i2c_driver);if (ret !=0 ) { printk(KERN_ERR "Failed to register wm8776 I2C driver: %d\n",
@@ -604,7 +604,7 @@ module_init(wm8776_modinit); static void __exit wm8776_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8776_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
Signature · 1 line
1.8.1.2
PATCH 11/18 ASoC: wm8804: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/wm8804.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8804.c +3 -3
@@ -739,7 +739,7 @@ static struct spi_driver wm8804_spi_driver = { };#endif -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8804_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -791,7 +791,7 @@ static int __init wm8804_modinit(void) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8804_i2c_driver);if (ret) { printk(KERN_ERR "Failed to register wm8804 I2C driver: %d\n",
@@ -811,7 +811,7 @@ module_init(wm8804_modinit); static void __exit wm8804_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8804_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
Signature · 1 line
1.8.1.2
PATCH 12/18 ASoC: wm8900: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/wm8900.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8900.c +3 -3
@@ -1288,7 +1288,7 @@ static struct spi_driver wm8900_spi_driver = { };#endif /* CONFIG_SPI_MASTER */ -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8900_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -1338,7 +1338,7 @@ static struct i2c_driver wm8900_i2c_driver = {static int __init wm8900_modinit (void ) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8900_i2c_driver);if (ret !=0 ) { printk(KERN_ERR "Failed to register wm8900 I2C driver: %d\n",
@@ -1358,7 +1358,7 @@ module_init(wm8900_modinit); static void __exit wm8900_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8900_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
Signature · 1 line
1.8.1.2
Re: [PATCH 12/18] ASoC: wm8900: Use IS_ENABLED() macro
Quoted 1 line · Fabio Estevam
Using the
IS_ENABLED()macro can make the code shorter and simpler.
Applied, thanks.
PATCH 13/18 ASoC: wm8983: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/wm8983.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8983.c +3 -3
@@ -1129,7 +1129,7 @@ static struct spi_driver wm8983_spi_driver = { };#endif -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8983_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -1182,7 +1182,7 @@ static int __init wm8983_modinit(void) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8983_i2c_driver);if (ret) { printk(KERN_ERR "Failed to register wm8983 I2C driver: %d\n",
@@ -1202,7 +1202,7 @@ module_init(wm8983_modinit); static void __exit wm8983_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8983_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
Signature · 1 line
1.8.1.2
Re: [PATCH 13/18] ASoC: wm8983: Use IS_ENABLED() macro
Quoted 1 line · Fabio Estevam
Using the
IS_ENABLED()macro can make the code shorter and simpler.
Applied, thanks.
PATCH 14/18 ASoC: wm8985: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/wm8985.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8985.c +3 -3
@@ -1148,7 +1148,7 @@ static struct spi_driver wm8985_spi_driver = { };#endif -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8985_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -1201,7 +1201,7 @@ static int __init wm8985_modinit(void) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8985_i2c_driver);if (ret) { printk(KERN_ERR "Failed to register wm8985 I2C driver: %d\n",
@@ -1221,7 +1221,7 @@ module_init(wm8985_modinit); static void __exit wm8985_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8985_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
Signature · 1 line
1.8.1.2
Re: [PATCH 14/18] ASoC: wm8985: Use IS_ENABLED() macro
Quoted 1 line · Fabio Estevam
Using the
IS_ENABLED()macro can make the code shorter and simpler.
Applied, thanks.
PATCH 15/18 ASoC: wm8988: Use IS_ENABLED() macro
In reply to Fabio EstevamUsing the IS_ENABLED() macro can make the code shorter and simpler.
--- sound/soc/codecs/wm8988.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8988.c +3 -3
@@ -912,7 +912,7 @@ static struct spi_driver wm8988_spi_driver = { };#endif /* CONFIG_SPI_MASTER */ -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8988_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -964,7 +964,7 @@ static struct i2c_driver wm8988_i2c_driver = {static int __init wm8988_modinit (void ) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8988_i2c_driver);if (ret !=0 ) { printk(KERN_ERR "Failed to register WM8988 I2C driver: %d\n",
@@ -984,7 +984,7 @@ module_init(wm8988_modinit); static void __exit wm8988_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8988_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
Signature · 1 line
1.8.1.2
Re: [PATCH 15/18] ASoC: wm8988: Use IS_ENABLED() macro
Quoted 1 line · Fabio Estevam
Using the
IS_ENABLED()macro can make the code shorter and simpler.
Applied, thanks.
PATCH 16/18 ASoC: wm8990:
In reply to Fabio Estevam--- sound/soc/codecs/wm8990.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8990.c +3 -3
@@ -1376,7 +1376,7 @@ static struct snd_soc_codec_driver soc_codec_dev_wm8990 = { .volatile_register = wm8990_volatile_register, }; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8990_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -1423,7 +1423,7 @@ static struct i2c_driver wm8990_i2c_driver = {static int __init wm8990_modinit (void ) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8990_i2c_driver);if (ret !=0 ) { printk(KERN_ERR "Failed to register wm8990 I2C driver: %d\n",
@@ -1436,7 +1436,7 @@ module_init(wm8990_modinit); static void __exit wm8990_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8990_i2c_driver);#endif }
Signature · 1 line
1.8.1.2
Mark Brown
maintainerRe: [PATCH 16/18] ASoC: wm8990:
Quoted 1 line · Fabio Estevam
Signed-off-by Fabio Estevam <[email protected]>
Please supply subject lines for your patches.
Re: [PATCH 16/18] ASoC: wm8990:
Quoted 4 lines · Mark Brown
Quoted 1 line · Fabio Estevam
Signed-off-by Fabio Estevam <[email protected]>Please supply subject lines for your patches.
Yes, sorry about that.
I have sent a v2 with only 16, 17 and 18 that missed the Subject and commit log originally.
Regards,
Fabio Estevam
Mark Brown
maintainerRe: [PATCH 16/18] ASoC: wm8990:
Quoted 4 lines · Fabio Estevam
Yes, sorry about that.
I have sent a v2 with only 16, 17 and 18 that missed the Subject and commit log originally.
Thanks!
PATCH 17/18 ASoC: wm8995:
In reply to Fabio Estevam--- sound/soc/codecs/wm8995.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/codecs/wm8995.c +3 -3
@@ -2293,7 +2293,7 @@ static struct spi_driver wm8995_spi_driver = { };#endif -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm8995_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
@@ -2350,7 +2350,7 @@ static int __init wm8995_modinit(void) {int ret =0 ; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C ) ret =i2c_add_driver (&wm8995_i2c_driver);if (ret) { printk(KERN_ERR "Failed to register wm8995 I2C driver: %d\n",
@@ -2371,7 +2371,7 @@ module_init(wm8995_modinit); static void __exit wm8995_exit(void) { -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )i2c_del_driver (&wm8995_i2c_driver);#endif #if defined(CONFIG_SPI_MASTER )
Signature · 1 line
1.8.1.2
PATCH 18/18 AsoC: wm9081:
In reply to Fabio Estevam--- sound/soc/codecs/wm9081.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm9081.c +1 -1
@@ -1326,7 +1326,7 @@ static const struct regmap_config wm9081_regmap = { .cache_type = REGCACHE_RBTREE, }; -#if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) +#if IS_ENABLED (CONFIG_I2C )static int wm9081_i2c_probe (struct i2c_client *i2c,const struct i2c_device_id *id) {
Signature · 1 line
1.8.1.2