Re: [PATCH 1/3] pwm: Add mc13xxx pwm driver.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi

+struct mc13xxx *get_mc13xxx(void)
+{
+	return mc13xxx_data;
+}
+EXPORT_SYMBOL_GPL(get_mc13xxx);
+
  int mc13xxx_common_init(struct mc13xxx *mc13xxx,
  		struct mc13xxx_platform_data *pdata, int irq)
  {
@@ -706,6 +714,9 @@ err_revision:
  		mc13xxx_add_subdevice(mc13xxx, "%s-pwrbutton");
  	}

+	/* Linux will not have to handle more than one mc13xxx pmic. */
+	mc13xxx_data = mc13xxx;
+

Why using a such hack instead of an MFD subdevice ?

Regards,

Philippe



--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux