aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2018-03-19 05:17:19 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-23 11:25:45 -0400
commitde5db101fc89fbbbf26abc7eeb3d48c40ca25105 (patch)
tree9d7b3a529b147ec9ab175f37f809b54f3a463581
parent551a12669d85b5121e66bf39ff194efd7d1d9ac0 (diff)
eeprom: at24: tweak newlines
Remove the newline between the nvmem registration and its return value check. This is consistent with the rest of the driver code. Add a missing newline between two pdata checks to stay consistent with all the others. Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl> Tested-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/misc/eeprom/at24.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c
index f871439d499d..5fc7c959ea01 100644
--- a/drivers/misc/eeprom/at24.c
+++ b/drivers/misc/eeprom/at24.c
@@ -585,6 +585,7 @@ static int at24_probe(struct i2c_client *client)
585 dev_err(dev, "page_size must not be 0!\n"); 585 dev_err(dev, "page_size must not be 0!\n");
586 return -EINVAL; 586 return -EINVAL;
587 } 587 }
588
588 if (!is_power_of_2(pdata.page_size)) 589 if (!is_power_of_2(pdata.page_size))
589 dev_warn(dev, "page_size looks suspicious (no power of 2)!\n"); 590 dev_warn(dev, "page_size looks suspicious (no power of 2)!\n");
590 591
@@ -686,7 +687,6 @@ static int at24_probe(struct i2c_client *client)
686 nvmem_config.size = pdata.byte_len; 687 nvmem_config.size = pdata.byte_len;
687 688
688 at24->nvmem = nvmem_register(&nvmem_config); 689 at24->nvmem = nvmem_register(&nvmem_config);
689
690 if (IS_ERR(at24->nvmem)) { 690 if (IS_ERR(at24->nvmem)) {
691 err = PTR_ERR(at24->nvmem); 691 err = PTR_ERR(at24->nvmem);
692 goto err_clients; 692 goto err_clients;