]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
device property: Add const qualifier to device_get_match_data() parameter
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 22 Sep 2022 13:54:10 +0000 (16:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:13:38 +0000 (15:13 +0100)
commitfcf6fce2f147431a8423df382b3c9b7d7c3f34f7
treeda91c61e0c0acd84cc65b931a04ccd60d12f7e49
parentd63fafd6cc28840a947fe02f367ec277347c4832
device property: Add const qualifier to device_get_match_data() parameter

[ Upstream commit aade55c86033bee868a93e4bf3843c9c99e84526 ]

Add const qualifier to the device_get_match_data() parameter.
Some of the future users may utilize this function without
forcing the type.

All the same, dev_fwnode() may be used with a const qualifier.

Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220922135410.49694-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/base/property.c
include/linux/property.h