This patch provides the common I2C driver code for Intel SoC PMICs.
Signed-off-by: Yang, Bin
Signed-off-by: Zhu, Lejun
---
v2:
- Use regmap instead of creating our own I2C read/write callbacks.
- Add one missing EXPORT_SYMBOL.
- Remove duplicate code and put them into pmic_regmap_load_from_hw.
v
> This patch provides the common I2C driver code for Intel SoC PMICs.
>
> Signed-off-by: Yang, Bin
> Signed-off-by: Zhu, Lejun
> ---
> v2:
> - Use regmap instead of creating our own I2C read/write callbacks.
> - Add one missing EXPORT_SYMBOL.
> - Remove duplicate code and put them into pmic_regm
On 5/29/2014 7:40 PM, Lee Jones wrote:
> [...]
>
>> +static int intel_soc_pmic_find_gpio_irq(struct device *dev)
>> +{
>> +struct gpio_desc *desc;
>> +int irq;
>> +
>> +desc = devm_gpiod_get_index(dev, KBUILD_MODNAME, 0);
>
> What does "KBUILD_MODNAME" translate to?
It translates i
> >> +static int intel_soc_pmic_find_gpio_irq(struct device *dev)
> >> +{
> >> + struct gpio_desc *desc;
> >> + int irq;
> >> +
> >> + desc = devm_gpiod_get_index(dev, KBUILD_MODNAME, 0);
> >
> > What does "KBUILD_MODNAME" translate to?
>
> It translates into "intel_soc_pmic".
Can you just pu
On 2014/5/30 16:08, Lee Jones wrote:
+static int intel_soc_pmic_find_gpio_irq(struct device *dev)
+{
+ struct gpio_desc *desc;
+ int irq;
+
+ desc = devm_gpiod_get_index(dev, KBUILD_MODNAME, 0);
>>>
>>> What does "KBUILD_MODNAME" translate to?
>>
>> It translates
> +static const struct i2c_device_id intel_soc_pmic_i2c_id[] = {
> +{"INT33FD:00", (kernel_ulong_t)&intel_soc_pmic_config_crc},
> +{ }
> +};
> +MODULE_DEVICE_TABLE(i2c, intel_soc_pmic_i2c_id);
> +
> +static struct acpi_device_id intel_soc_pmic_acpi
On 2014/5/30 17:28, Lee Jones wrote:
>> +static const struct i2c_device_id intel_soc_pmic_i2c_id[] = {
>> +{"INT33FD:00", (kernel_ulong_t)&intel_soc_pmic_config_crc},
>> +{ }
>> +};
>> +MODULE_DEVICE_TABLE(i2c, intel_soc_pmic_i2c_id);
>> +
>> +static st
7 matches
Mail list logo