From: "Rafael J. Wysocki" Subject: Re: [PATCH v2 1/1] device property: Introduce fwnode_call_bool_op() for ops that return bool Date: Wed, 12 Jul 2017 23:18:33 +0200 Message-ID: <7716030.edOFY8x2UM@aspire.rjw.lan> References: <1499858433-17655-1-git-send-email-sakari.ailus@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <1499858433-17655-1-git-send-email-sakari.ailus-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Sakari Ailus Cc: linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, rafael-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, sudeep.holla-5wv7dgnIgG8@public.gmane.org, lorenzo.pieralisi-5wv7dgnIgG8@public.gmane.org, mika.westerberg-VuQAYsv1563Yd54FQh9/CA@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, ahs3-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org List-Id: linux-acpi@vger.kernel.org On Wednesday, July 12, 2017 02:20:33 PM Sakari Ailus wrote: > fwnode_call_int_op() isn't suitable for calling ops that return bool since > it effectively causes the result returned to the user to be true when an > op hasn't been defined or the fwnode is NULL. Address this by introducing > fwnode_call_bool_op() for calling ops that return bool. > > Fixes: 3708184afc77 ("device property: Move FW type specific functionality to FW specific files") > Fixes: 2294b3af05e9 ("device property: Introduce fwnode_device_is_available()") > Reported-by: Dan Carpenter > Signed-off-by: Sakari Ailus Applied, thanks! -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html