On Tue, 2018-01-02 at 20:08 +0100, Lukas Wunner wrote: > Enable Bluetooth on the following Macs which provide custom ACPI > methods > to toggle the GPIOs for device wake and shutdown instead of accessing > the pins directly: > +static inline int bcm_apple_get_resources(struct bcm_device *dev) > +{ return -EOPNOTSUPP; } > +static inline int bcm_apple_set_power(struct bcm_device *dev, bool > powered) > +{ return -EOPNOTSUPP; } > +static inline int bcm_apple_set_low_power(struct bcm_device *dev, > bool enable) > +{ return -EOPNOTSUPP; } > Might be a silly question but can we create some struct with callbacks and assign it differently based on Apple / non-Apple cases? In that case you don't need conditionals to call (you will always have them defined to something). -- Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> Intel Finland Oy -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html