123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683 |
- /*
- * max77823.c
- * Samsung Mobile Battery Driver
- *
- * Copyright (C) 2012 Samsung Electronics
- *
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
- #define DEBUG
- #include <linux/module.h>
- #include <linux/slab.h>
- #include <linux/mutex.h>
- #include <linux/regulator/machine.h>
- #include <linux/i2c.h>
- #include <linux/interrupt.h>
- #include <linux/irq.h>
- #include <linux/mfd/core.h>
- #include <linux/mfd/max77823.h>
- #include <linux/mfd/max77823-private.h>
- #if defined (CONFIG_OF)
- #include <linux/of_device.h>
- #include <linux/of_gpio.h>
- #endif /* CONFIG_OF */
- static struct mfd_cell max77823_devs[] = {
- { .name = "max77823-charger",},
- { .name = "max77823-fuelgauge",},
- { .name = "max77823-safeout",},
- };
- static const u8 max77823_mask_reg[] = {
- [CHG_IRQ] = MAX77823_CHG_INT_MASK,
- [FUEL_IRQ] = MAX77823_FUEL_INT_MASK,
- };
- int max77823_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest)
- {
- struct max77823_dev *max77823 = i2c_get_clientdata(i2c);
- int ret;
- mutex_lock(&max77823->i2c_lock);
- ret = i2c_smbus_read_byte_data(i2c, reg);
- mutex_unlock(&max77823->i2c_lock);
- if (ret < 0) {
- pr_info("%s reg(0x%x), ret(%d)\n", __func__, reg, ret);
- return ret;
- }
- ret &= 0xff;
- *dest = ret;
- return 0;
- }
- EXPORT_SYMBOL_GPL(max77823_read_reg);
- int max77823_bulk_read(struct i2c_client *i2c, u8 reg, int count, u8 *buf)
- {
- struct max77823_dev *max77823 = i2c_get_clientdata(i2c);
- int ret;
- mutex_lock(&max77823->i2c_lock);
- ret = i2c_smbus_read_i2c_block_data(i2c, reg, count, buf);
- mutex_unlock(&max77823->i2c_lock);
- if (ret < 0)
- return ret;
- return 0;
- }
- EXPORT_SYMBOL_GPL(max77823_bulk_read);
- int max77823_read_word(struct i2c_client *i2c, u8 reg)
- {
- struct max77823_dev *max77823 = i2c_get_clientdata(i2c);
- int ret;
- mutex_lock(&max77823->i2c_lock);
- ret = i2c_smbus_read_word_data(i2c, reg);
- mutex_unlock(&max77823->i2c_lock);
- if (ret < 0)
- return ret;
- return ret;
- }
- EXPORT_SYMBOL_GPL(max77823_read_word);
- int max77823_write_reg(struct i2c_client *i2c, u8 reg, u8 value)
- {
- struct max77823_dev *max77823 = i2c_get_clientdata(i2c);
- int ret;
- mutex_lock(&max77823->i2c_lock);
- ret = i2c_smbus_write_byte_data(i2c, reg, value);
- mutex_unlock(&max77823->i2c_lock);
- if (ret < 0)
- pr_info("%s reg(0x%x), ret(%d)\n",
- __func__, reg, ret);
- return ret;
- }
- EXPORT_SYMBOL_GPL(max77823_write_reg);
- int max77823_bulk_write(struct i2c_client *i2c, u8 reg, int count, u8 *buf)
- {
- struct max77823_dev *max77823 = i2c_get_clientdata(i2c);
- int ret;
- mutex_lock(&max77823->i2c_lock);
- ret = i2c_smbus_write_i2c_block_data(i2c, reg, count, buf);
- mutex_unlock(&max77823->i2c_lock);
- if (ret < 0)
- return ret;
- return 0;
- }
- EXPORT_SYMBOL_GPL(max77823_bulk_write);
- int max77823_write_word(struct i2c_client *i2c, u8 reg, u16 value)
- {
- struct max77823_dev *max77823 = i2c_get_clientdata(i2c);
- int ret;
- mutex_lock(&max77823->i2c_lock);
- ret = i2c_smbus_write_word_data(i2c, reg, value);
- mutex_unlock(&max77823->i2c_lock);
- if (ret < 0)
- return ret;
- return 0;
- }
- EXPORT_SYMBOL_GPL(max77823_write_word);
- int max77823_update_reg(struct i2c_client *i2c, u8 reg, u8 val, u8 mask)
- {
- struct max77823_dev *max77823 = i2c_get_clientdata(i2c);
- int ret;
- mutex_lock(&max77823->i2c_lock);
- ret = i2c_smbus_read_byte_data(i2c, reg);
- if (ret >= 0) {
- u8 old_val = ret & 0xff;
- u8 new_val = (val & mask) | (old_val & (~mask));
- ret = i2c_smbus_write_byte_data(i2c, reg, new_val);
- }
- mutex_unlock(&max77823->i2c_lock);
- return ret;
- }
- EXPORT_SYMBOL_GPL(max77823_update_reg);
- static struct i2c_client *get_i2c(struct max77823_dev *max77823,
- enum max77823_irq_source src)
- {
- switch (src) {
- case CHG_IRQ:
- return max77823->charger;
- case FUEL_IRQ:
- return max77823->fuelgauge;
- default:
- return ERR_PTR(-EINVAL);
- }
- }
- struct max77823_irq_data {
- int mask;
- enum max77823_irq_source group;
- };
- #define DECLARE_IRQ(idx, _group, _mask) \
- [(idx)] = { .group = (_group), .mask = (_mask) }
- static const struct max77823_irq_data max77823_irqs[] = {
- DECLARE_IRQ(MAX77823_CHG_IRQ_BYP_I, CHG_IRQ, 1 << 0),
- DECLARE_IRQ(MAX77823_CHG_IRQ_BATP_I, CHG_IRQ, 1 << 2),
- DECLARE_IRQ(MAX77823_CHG_IRQ_BAT_I, CHG_IRQ, 1 << 3),
- DECLARE_IRQ(MAX77823_CHG_IRQ_CHG_I, CHG_IRQ, 1 << 4),
- DECLARE_IRQ(MAX77823_CHG_IRQ_WCIN_I, CHG_IRQ, 1 << 5),
- DECLARE_IRQ(MAX77823_CHG_IRQ_CHGIN_I, CHG_IRQ, 1 << 6),
- DECLARE_IRQ(MAX77823_FG_IRQ_ALERT, FUEL_IRQ, 1 << 1),
- };
- static void max77823_irq_lock(struct irq_data *data)
- {
- struct max77823_dev *max77823 = irq_get_chip_data(data->irq);
- mutex_lock(&max77823->irqlock);
- }
- static void max77823_irq_sync_unlock(struct irq_data *data)
- {
- struct max77823_dev *max77823 = irq_get_chip_data(data->irq);
- int i;
- for (i = 0; i < MAX77823_IRQ_GROUP_NR; i++) {
- u8 mask_reg = max77823_mask_reg[i];
- struct i2c_client *i2c = get_i2c(max77823, i);
- if (mask_reg == MAX77823_REG_INVALID ||
- IS_ERR_OR_NULL(i2c))
- continue;
- max77823->irq_masks_cache[i] = max77823->irq_masks_cur[i];
- max77823_write_reg(i2c, max77823_mask_reg[i],
- max77823->irq_masks_cur[i]);
- }
- mutex_unlock(&max77823->irqlock);
- }
- static const inline struct max77823_irq_data *
- irq_to_max77823_irq(struct max77823_dev *max77823, int irq)
- {
- return &max77823_irqs[irq - max77823->irq_base];
- }
- static void max77823_irq_mask(struct irq_data *data)
- {
- struct max77823_dev *max77823 = irq_get_chip_data(data->irq);
- const struct max77823_irq_data *irq_data =
- irq_to_max77823_irq(max77823, data->irq);
- if (irq_data->group >= MAX77823_IRQ_GROUP_NR)
- return;
- max77823->irq_masks_cur[irq_data->group] |= irq_data->mask;
- }
- static void max77823_irq_unmask(struct irq_data *data)
- {
- struct max77823_dev *max77823 = irq_get_chip_data(data->irq);
- const struct max77823_irq_data *irq_data =
- irq_to_max77823_irq(max77823, data->irq);
- if (irq_data->group >= MAX77823_IRQ_GROUP_NR)
- return;
- max77823->irq_masks_cur[irq_data->group] &= ~irq_data->mask;
- }
- static struct irq_chip max77823_irq_chip = {
- .name = "max77823",
- .irq_bus_lock = max77823_irq_lock,
- .irq_bus_sync_unlock = max77823_irq_sync_unlock,
- .irq_mask = max77823_irq_mask,
- .irq_unmask = max77823_irq_unmask,
- };
- static irqreturn_t max77823_irq_thread(int irq, void *data)
- {
- struct max77823_dev *max77823 = data;
- u8 irq_reg[MAX77823_IRQ_GROUP_NR] = {0};
- u8 irq_src;
- int ret;
- int i;
- pr_debug("%s: irq gpio pre-state(0x%02x)\n", __func__,
- gpio_get_value(max77823->irq_gpio));
- clear_retry:
- ret = max77823_read_reg(max77823->i2c,
- MAX77823_PMIC_INT, &irq_src);
- if (ret < 0) {
- dev_err(max77823->dev, "Failed to read interrupt source: %d\n",
- ret);
- return IRQ_NONE;
- }
- pr_info("%s: interrupt source(0x%02x)\n", __func__, irq_src);
- if (irq_src & MAX77823_IRQSRC_CHG) {
- /* CHG_IRQ */
- ret = max77823_read_reg(max77823->charger,
- MAX77823_CHG_INT, &irq_reg[CHG_IRQ]);
- pr_info("%s: charger interrupt(0x%02x)\n",
- __func__, irq_reg[CHG_IRQ]);
- /* mask chgin to prevent chgin infinite interrupt
- * chgin is unmasked chgin isr
- */
- if (irq_reg[CHG_IRQ] &
- max77823_irqs[MAX77823_CHG_IRQ_CHGIN_I].mask) {
- u8 reg_data;
- max77823_read_reg(max77823->charger,
- MAX77823_CHG_INT_MASK, ®_data);
- reg_data |= (1 << 6);
- max77823_write_reg(max77823->charger,
- MAX77823_CHG_INT_MASK, reg_data);
- }
- }
- if (irq_src & MAX77823_IRQSRC_FG) {
- irq_reg[FUEL_IRQ] = irq_src;
- }
- if (irq_src & MAX77823_IRQSRC_SYS) {
- u8 reg_data;
- ret = max77823_read_reg(max77823->i2c,
- MAX77823_PMIC_SYS_INT, &irq_reg[SYS_IRQ]);
- pr_info("%s: sys interrupt(0x%02x)\n",
- __func__, irq_reg[SYS_IRQ]);
- ret = max77823_read_reg(max77823->i2c,
- MAX77823_PMIC_INT_MASK, ®_data);
- pr_info("%s: int mask(0x%02x)\n",
- __func__, reg_data);
- ret = max77823_read_reg(max77823->i2c,
- MAX77823_PMIC_SYS_INT_MASK, ®_data);
- pr_info("%s: sys int mask(0x%02x)\n",
- __func__, reg_data);
- }
- pr_debug("%s: irq gpio post-state(0x%02x)\n", __func__,
- gpio_get_value(max77823->irq_gpio));
- if (gpio_get_value(max77823->irq_gpio) == 0) {
- pr_warn("%s: irq_gpio is not High!\n", __func__);
- goto clear_retry;
- }
- /* Apply masking */
- for (i = 0; i < MAX77823_IRQ_GROUP_NR; i++) {
- irq_reg[i] &= ~max77823->irq_masks_cur[i];
- }
- /* Report */
- for (i = 0; i < MAX77823_IRQ_NR; i++) {
- if (irq_reg[max77823_irqs[i].group] & max77823_irqs[i].mask) {
- handle_nested_irq(max77823->irq_base + i);
- }
- }
- return IRQ_HANDLED;
- }
- static int max77823_irq_init(struct max77823_dev *max77823)
- {
- int i;
- int cur_irq;
- int ret;
- u8 i2c_data;
- if (!max77823->irq_gpio) {
- dev_warn(max77823->dev, "No interrupt specified.\n");
- max77823->irq_base = 0;
- return 0;
- }
- if (!max77823->irq_base) {
- dev_err(max77823->dev, "No interrupt base specified.\n");
- return 0;
- }
- mutex_init(&max77823->irqlock);
- max77823->irq = gpio_to_irq(max77823->irq_gpio);
- pr_info("%s irq=%d, irq->gpio=%d\n", __func__,
- max77823->irq, max77823->irq_gpio);
- ret = gpio_request(max77823->irq_gpio, "max77823_irq");
- if (ret) {
- dev_err(max77823->dev, "%s: failed requesting gpio %d\n",
- __func__, max77823->irq_gpio);
- return ret;
- }
- gpio_direction_input(max77823->irq_gpio);
- gpio_free(max77823->irq_gpio);
- /* Mask individual interrupt sources */
- for (i = 0; i < MAX77823_IRQ_GROUP_NR; i++) {
- struct i2c_client *i2c;
- max77823->irq_masks_cur[i] = 0xff;
- max77823->irq_masks_cache[i] = 0xff;
- i2c = get_i2c(max77823, i);
- if (IS_ERR_OR_NULL(i2c))
- continue;
- if (max77823_mask_reg[i] == MAX77823_REG_INVALID)
- continue;
- if (i == FUEL_IRQ)
- max77823_write_reg(i2c, max77823_mask_reg[i], 0x00);
- else
- max77823_write_reg(i2c, max77823_mask_reg[i], 0xff);
- }
- /* Register with genirq */
- for (i = 0; i < MAX77823_IRQ_NR; i++) {
- cur_irq = i + max77823->irq_base;
- irq_set_chip_data(cur_irq, max77823);
- irq_set_chip_and_handler(cur_irq, &max77823_irq_chip,
- handle_edge_irq);
- irq_set_nested_thread(cur_irq, 1);
- #ifdef CONFIG_ARM
- set_irq_flags(cur_irq, IRQF_VALID);
- #else
- irq_set_noprobe(cur_irq);
- #endif
- }
- /* Unmask max77804 interrupt */
- ret = max77823_read_reg(max77823->i2c, MAX77823_PMIC_INT_MASK,
- &i2c_data);
- if (ret) {
- dev_err(max77823->dev, "%s: fail to read max77823 reg\n", __func__);
- return ret;
- }
- i2c_data &= ~(MAX77823_IRQSRC_CHG); /* Unmask charger interrupt */
- //i2c_data &= ~(MAX77823_IRQSRC_FG); /* Unmask fuelgauge interrupt */
- max77823_write_reg(max77823->i2c, MAX77823_PMIC_INT_MASK,
- i2c_data);
- pr_info("%s max77804_PMIC_REG_INTSRC_MASK=0x%02x\n",
- __func__, i2c_data);
- ret = request_threaded_irq(max77823->irq, NULL, max77823_irq_thread,
- IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
- "max77823-irq", max77823);
- if (ret) {
- dev_err(max77823->dev, "Failed to request IRQ %d: %d\n",
- max77823->irq, ret);
- return ret;
- }
- return 0;
- }
- #if defined(CONFIG_OF)
- static int of_max77823_dt(struct device *dev, struct max77823_platform_data *pdata)
- {
- struct device_node *np_max77823 = dev->of_node;
- if(!np_max77823)
- return -EINVAL;
- pdata->irq_gpio = of_get_named_gpio(np_max77823, "max77823,irq-gpio", 0);
- pdata->wakeup = of_property_read_bool(np_max77823, "max77823,wakeup");
- pr_info("%s: irq-gpio: %u \n", __func__, pdata->irq_gpio);
- return 0;
- }
- #endif /* CONFIG_OF */
- static struct regulator_consumer_supply safeout1_supply[] = {
- REGULATOR_SUPPLY("safeout1", NULL),
- };
- static struct regulator_consumer_supply safeout2_supply[] = {
- REGULATOR_SUPPLY("safeout2", NULL),
- };
- static struct regulator_consumer_supply charger_supply[] = {
- REGULATOR_SUPPLY("vinchg1", "charger-manager.0"),
- REGULATOR_SUPPLY("vinchg1", NULL),
- };
- static struct regulator_init_data safeout1_init_data = {
- .constraints = {
- .name = "safeout1 range",
- .valid_ops_mask = REGULATOR_CHANGE_STATUS,
- .always_on = 1,
- .boot_on = 1,
- .state_mem = {
- .enabled = 1,
- },
- },
- .num_consumer_supplies = ARRAY_SIZE(safeout1_supply),
- .consumer_supplies = safeout1_supply,
- };
- static struct regulator_init_data safeout2_init_data = {
- .constraints = {
- .name = "safeout2 range",
- .valid_ops_mask = REGULATOR_CHANGE_STATUS,
- .always_on = 0,
- .boot_on = 0,
- .state_mem = {
- .enabled = 1,
- },
- },
- .num_consumer_supplies = ARRAY_SIZE(safeout2_supply),
- .consumer_supplies = safeout2_supply,
- };
- static struct regulator_init_data charger_init_data = {
- .constraints = {
- .name = "CHARGER",
- .valid_ops_mask = REGULATOR_CHANGE_STATUS |
- REGULATOR_CHANGE_CURRENT,
- .always_on = 1,
- .boot_on = 1,
- .min_uA = 60000,
- .max_uA = 2580000,
- },
- .num_consumer_supplies = ARRAY_SIZE(charger_supply),
- .consumer_supplies = charger_supply,
- };
- struct max77823_regulator_data max77823_regulators[] = {
- {MAX77823_ESAFEOUT1, &safeout1_init_data,},
- {MAX77823_ESAFEOUT2, &safeout2_init_data,},
- {MAX77823_CHARGER, &charger_init_data,},
- };
- static int __devinit max77823_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
- {
- struct max77823_dev *max77823;
- struct max77823_platform_data *pdata = client->dev.platform_data;
- u8 reg_data;
- int ret;
- pr_info("[%s] START\n", __func__);
- max77823 = kzalloc(sizeof(struct max77823_dev), GFP_KERNEL);
- if (max77823 == NULL)
- return -ENOMEM;
- if (client->dev.of_node) {
- pdata = devm_kzalloc(&client->dev,
- sizeof(struct max77823_platform_data),
- GFP_KERNEL);
- if (!pdata) {
- dev_err(&client->dev,
- "Failed to allocate memory\n");
- ret = -ENOMEM;
- }
- ret = of_max77823_dt(&client->dev, pdata);
- if (ret < 0) {
- dev_err(&client->dev, "Failed to get device of_node\n");
- return ret;
- }
- pdata->num_regulators = MAX77823_REG_MAX;
- pdata->regulators = max77823_regulators;
- client->dev.platform_data = pdata;
- } else
- pdata = client->dev.platform_data;
- max77823->i2c = client;
- max77823->dev = &client->dev;
- max77823->irq = client->irq;
- if (pdata) {
- max77823->pdata = pdata;
- pdata->irq_base = irq_alloc_descs(-1, 0, MAX77823_IRQ_NR, -1);
- if (pdata->irq_base < 0) {
- pr_err("%s: irq_alloc_descs Fail ret(%d)\n",
- __func__, pdata->irq_base);
- ret = -EINVAL;
- } else
- max77823->irq_base = pdata->irq_base;
- printk("%s: irq_base(%d)\n",__func__,pdata->irq_base);
-
- max77823->irq_gpio = pdata->irq_gpio;
- max77823->wakeup = pdata->wakeup;
- } else {
- ret = -EINVAL;
- }
- mutex_init(&max77823->i2c_lock);
- i2c_set_clientdata(client, max77823);
- max77823->charger = i2c_new_dummy(client->adapter, I2C_ADDR_CHARGER);
- if (max77823->charger)
- i2c_set_clientdata(max77823->charger, max77823);
- max77823->fuelgauge = i2c_new_dummy(client->adapter, I2C_ADDR_FUELGAUGE);
- if (max77823->fuelgauge)
- i2c_set_clientdata(max77823->fuelgauge, max77823);
- if (max77823_read_reg(max77823->i2c, MAX77823_PMIC_ID, ®_data) < 0) {
- dev_err(max77823->dev,
- "device not found on this channel (this is not an error)\n");
- ret = -ENODEV;
- goto err;
- }
- if (max77823_read_reg(max77823->i2c, MAX77823_PMIC_SAFEOUT_LDO_Control, ®_data) < 0) {
- dev_err(max77823->dev,
- "device not found on this channel (this is not an error)\n");
- }
-
- if((max77823_update_reg(max77823->i2c, MAX77823_PMIC_SAFEOUT_LDO_Control, 0x00,0x30) , 0))
- printk("Error 1 reading LDO control\n");
-
- if (max77823_read_reg(max77823->i2c, MAX77823_PMIC_SAFEOUT_LDO_Control, ®_data) < 0) {
- dev_err(max77823->dev,
- "device not found on this channel (this is not an error)\n");
- }
-
- ret = max77823_irq_init(max77823);
- if (ret < 0)
- goto err_irq_init;
- ret = mfd_add_devices(max77823->dev, -1, max77823_devs,
- ARRAY_SIZE(max77823_devs), NULL,
- max77823->irq_base);
- if (ret) {
- dev_err(&client->dev, "%s : failed to add devices\n", __func__);
- goto err_mfd;
- }
- device_init_wakeup(max77823->dev, pdata->wakeup);
- pr_info("[%s] END\n", __func__);
- return ret;
- err_mfd:
- mfd_remove_devices(max77823->dev);
- err_irq_init:
- i2c_unregister_device(max77823->charger);
- i2c_unregister_device(max77823->fuelgauge);
- err:
- kfree(max77823);
- return ret;
- }
- static int __devexit max77823_remove(struct i2c_client *client)
- {
- struct max77823_dev *max77823 = i2c_get_clientdata(client);
- mfd_remove_devices(max77823->dev);
- i2c_unregister_device(max77823->charger);
- i2c_unregister_device(max77823->fuelgauge);
- return 0;
- }
- static const struct i2c_device_id max77823_id[] = {
- {"max77823", 0},
- {}
- };
- MODULE_DEVICE_TABLE(i2c, max77823_id);
- #if defined(CONFIG_OF)
- static struct of_device_id max77823_i2c_dt_ids[] = {
- { .compatible = "maxim,max77823" },
- { },
- };
- MODULE_DEVICE_TABLE(of, max77823_i2c_dt_ids);
- #endif /* CONFIG_OF */
- static struct i2c_driver max77823_driver = {
- .driver = {
- .name = "max77823",
- .owner = THIS_MODULE,
- #if defined(CONFIG_OF)
- .of_match_table = max77823_i2c_dt_ids,
- #endif
- },
- .probe = max77823_probe,
- .remove = __devexit_p(max77823_remove),
- .id_table = max77823_id,
- };
- static int __init max77823_init(void)
- {
- pr_info("[%s] start \n", __func__);
- return i2c_add_driver(&max77823_driver);
- }
- static void __exit max77823_exit(void)
- {
- i2c_del_driver(&max77823_driver);
- }
- module_init(max77823_init);
- module_exit(max77823_exit);
- MODULE_DESCRIPTION("Samsung MAX77823 Driver");
- MODULE_AUTHOR("Samsung Electronics");
- MODULE_LICENSE("GPL");
|