parameter: Return NULL instead of ENOSYS if CONFIG_PARAMETER is disabled
This reverts 03b59bdb64 ("paramter: The dev_add_param_*() return
ERR_PTR(), change no-ops to return ERR_PTR(-ENOSYS) instead of NULL").

Most callers of dev_add_param_*() don't care about whether
CONFIG_PARAMETER is enabled or not. The remaining ones have already been
prepared for getting a NULL pointer. As a result, these callers will not
fail itself, only because CONFIG_PARAMETER (which is always optional) is
disabled.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a283322 commit 73dda8a0f7b5f3fdec45b8cb9e936fac79105ab7
@Christian Eggers Christian Eggers authored on 23 Jan 2020
Sascha Hauer committed on 27 Jan 2020
Showing 1 changed file
View
include/param.h