Skip to content

Commit

Permalink
mfd: axp20x: Use correct platform device ID for many PEK
Browse files Browse the repository at this point in the history
According to their datasheets, the AXP221, AXP223, AXP288, AXP803,
AXP809 and AXP813 PEK have different values for startup time bits from
the AXP20X, let's use the platform device id with the correct values.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
  • Loading branch information
QSchulz authored and Lee Jones committed Sep 5, 2017
1 parent 462ae14 commit f446363
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/mfd/axp20x.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ static struct mfd_cell axp20x_cells[] = {

static struct mfd_cell axp221_cells[] = {
{
.name = "axp20x-pek",
.name = "axp221-pek",
.num_resources = ARRAY_SIZE(axp22x_pek_resources),
.resources = axp22x_pek_resources,
}, {
Expand All @@ -702,7 +702,7 @@ static struct mfd_cell axp221_cells[] = {

static struct mfd_cell axp223_cells[] = {
{
.name = "axp20x-pek",
.name = "axp221-pek",
.num_resources = ARRAY_SIZE(axp22x_pek_resources),
.resources = axp22x_pek_resources,
}, {
Expand Down Expand Up @@ -835,7 +835,7 @@ static struct mfd_cell axp288_cells[] = {
.resources = axp288_fuel_gauge_resources,
},
{
.name = "axp20x-pek",
.name = "axp221-pek",
.num_resources = ARRAY_SIZE(axp288_power_button_resources),
.resources = axp288_power_button_resources,
},
Expand All @@ -846,7 +846,7 @@ static struct mfd_cell axp288_cells[] = {

static struct mfd_cell axp803_cells[] = {
{
.name = "axp20x-pek",
.name = "axp221-pek",
.num_resources = ARRAY_SIZE(axp803_pek_resources),
.resources = axp803_pek_resources,
},
Expand All @@ -862,7 +862,7 @@ static struct mfd_cell axp806_cells[] = {

static struct mfd_cell axp809_cells[] = {
{
.name = "axp20x-pek",
.name = "axp221-pek",
.num_resources = ARRAY_SIZE(axp809_pek_resources),
.resources = axp809_pek_resources,
}, {
Expand All @@ -873,7 +873,7 @@ static struct mfd_cell axp809_cells[] = {

static struct mfd_cell axp813_cells[] = {
{
.name = "axp20x-pek",
.name = "axp221-pek",
.num_resources = ARRAY_SIZE(axp803_pek_resources),
.resources = axp803_pek_resources,
}
Expand Down

0 comments on commit f446363

Please sign in to comment.