Commit 1f77d185 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski Committed by Greg Kroah-Hartman

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: default avatarBartosz Golaszewski <brgl@bgdev.pl>
Tested-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7c7f428e
...@@ -463,7 +463,8 @@ static int at24_write(void *priv, unsigned int off, void *val, size_t count) ...@@ -463,7 +463,8 @@ static int at24_write(void *priv, unsigned int off, void *val, size_t count)
return 0; return 0;
} }
static void at24_get_pdata(struct device *dev, struct at24_platform_data *chip) static void at24_properties_to_pdata(struct device *dev,
struct at24_platform_data *chip)
{ {
int err; int err;
u32 val; u32 val;
...@@ -550,7 +551,7 @@ static int at24_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -550,7 +551,7 @@ static int at24_probe(struct i2c_client *client, const struct i2c_device_id *id)
chip.byte_len = cd->byte_len; chip.byte_len = cd->byte_len;
chip.flags = cd->flags; chip.flags = cd->flags;
at24_get_pdata(&client->dev, &chip); at24_properties_to_pdata(&client->dev, &chip);
} }
if (!chip.page_size) { if (!chip.page_size) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment