On 05/31/17 12:58, Mika Westerberg wrote: > On Mon, May 22, 2017 at 11:53:21AM +0300, Sakari Ailus wrote: >> /** >> + * fwnode_device_is_available - check if a device is available for use >> + * @fwnode: Pointer to the fwnode of the device. >> + */ >> +bool fwnode_device_is_available(struct fwnode_handle *fwnode) > > Can it be const instead? Ditto for of_fwnode_device_is_available() and > acpi_fwnode_device_is_available) and the .device_available() hook. > In principle yes, but it will require other changes in the ACPI framework as well that do not suit well yet for this patchset. I have another patchset that makes fwnode arguments const whenever it's possible: <URL:http://www.spinics.net/lists/devicetree/msg177564.html> -- Sakari Ailus sakari.ailus@xxxxxxxxxxxxxxx -- 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