On 10/28/13 11:12, Josh Cartwright wrote: > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > index 914c3d1..0a288cb 100644 > --- a/drivers/mfd/Kconfig > +++ b/drivers/mfd/Kconfig > @@ -476,6 +476,16 @@ config MFD_PM8XXX_IRQ > This is required to use certain other PM 8xxx features, such as GPIO > and MPP. > > +config MFD_PM8X41 > + bool "Qualcomm PM8X41 PMIC" Can this be tristate? > + depends on ARCH_MSM It would be nice if we didn't have to depend on ARCH_MSM so we get some more build coverage but the driver is so simple it probably doesn't matter. > + select REGMAP_SPMI > + help > + This enables basic support for the Qualcomm 8941 and 8841 PMICs. These > + PMICs are currently used with the Snapdragon 800 series of SoCs. Note, that > + this will only be useful paired with descriptions of the independent functions > + as children nodes in the device tree. > + > config MFD_RDC321X > tristate "RDC R-321x southbridge" > select MFD_CORE > diff --git a/drivers/mfd/pm8x41.c b/drivers/mfd/pm8x41.c > new file mode 100644 > index 0000000..0a57221 > --- /dev/nullalso > +++ b/drivers/mfd/pm8x41.c > @@ -0,0 +1,64 @@ [...] > + > +static int pm8x41_probe(struct spmi_device *sdev) > +{ > + struct regmap *regmap; > + > + regmap = devm_regmap_init_spmi(sdev, &pm8x41_regmap_config); > + if (IS_ERR(regmap)) { > + dev_dbg(&sdev->dev, "regmap creation failed.\n"); > + return PTR_ERR(regmap); > + } > + > + return of_platform_populate(sdev->dev.of_node, NULL, NULL, &sdev->dev); > +} > + > +static struct of_device_id pm8x41_id_table[] = { const? > + { "qcom,pm8841", }, > + { "qcom,pm8941", }, > + {}, > +}; > +MODULE_DEVICE_TABLE(of, pm8x41_id_table); > -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html