mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
mfd: max14577: Make mfd_cell array const
mfd_add_devices() expects array of struct mfd_cell to be const. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
81cf4f2d98
commit
92725493d2
1 changed files with 3 additions and 3 deletions
|
|
@ -26,7 +26,7 @@
|
|||
#include <linux/mfd/max14577.h>
|
||||
#include <linux/mfd/max14577-private.h>
|
||||
|
||||
static struct mfd_cell max14577_devs[] = {
|
||||
static const struct mfd_cell max14577_devs[] = {
|
||||
{
|
||||
.name = "max14577-muic",
|
||||
.of_compatible = "maxim,max14577-muic",
|
||||
|
|
@ -38,7 +38,7 @@ static struct mfd_cell max14577_devs[] = {
|
|||
{ .name = "max14577-charger", },
|
||||
};
|
||||
|
||||
static struct mfd_cell max77836_devs[] = {
|
||||
static const struct mfd_cell max77836_devs[] = {
|
||||
{
|
||||
.name = "max77836-muic",
|
||||
.of_compatible = "maxim,max77836-muic",
|
||||
|
|
@ -292,7 +292,7 @@ static int max14577_i2c_probe(struct i2c_client *i2c,
|
|||
struct device_node *np = i2c->dev.of_node;
|
||||
int ret = 0;
|
||||
const struct regmap_irq_chip *irq_chip;
|
||||
struct mfd_cell *mfd_devs;
|
||||
const struct mfd_cell *mfd_devs;
|
||||
unsigned int mfd_devs_size;
|
||||
int irq_flags;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue