diff options
author | Bartosz Golaszewski <brgl@bgdev.pl> | 2018-03-19 05:17:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-23 11:25:00 -0400 |
commit | 1f77d1859c3a43a22ae35f68051014c30728efee (patch) | |
tree | 4a450eec5b0108a6a0562b418f5330815df520f5 | |
parent | 7c7f428eda52bbd72e8bef55298e5156f3e0ca9e (diff) |
eeprom: at24: rename at24_get_pdata()
As preparation for at24_probe() refactoring: rename at24_get_pdata()
to at24_properties_to_pdata(). We're doing it because we'll move the
pdata parsing code into a separate function which will be called
at24_get_pdata(). Current routine with that name actually parses
the device properties so change its name to reflect its purpose.
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index d68dc0d0b845..5cdbf5ba8df7 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c | |||
@@ -463,7 +463,8 @@ static int at24_write(void *priv, unsigned int off, void *val, size_t count) | |||
463 | return 0; | 463 | return 0; |
464 | } | 464 | } |
465 | 465 | ||
466 | static void at24_get_pdata(struct device *dev, struct at24_platform_data *chip) | 466 | static void at24_properties_to_pdata(struct device *dev, |
467 | struct at24_platform_data *chip) | ||
467 | { | 468 | { |
468 | int err; | 469 | int err; |
469 | u32 val; | 470 | u32 val; |
@@ -550,7 +551,7 @@ static int at24_probe(struct i2c_client *client, const struct i2c_device_id *id) | |||
550 | 551 | ||
551 | chip.byte_len = cd->byte_len; | 552 | chip.byte_len = cd->byte_len; |
552 | chip.flags = cd->flags; | 553 | chip.flags = cd->flags; |
553 | at24_get_pdata(&client->dev, &chip); | 554 | at24_properties_to_pdata(&client->dev, &chip); |
554 | } | 555 | } |
555 | 556 | ||
556 | if (!chip.page_size) { | 557 | if (!chip.page_size) { |