device property: Replace custom implementation of COUNT_ARGS()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 20 Sep 2023 15:38:19 +0000 (18:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2023 11:12:06 +0000 (13:12 +0200)
commit1dc05a274a7b13fd61b6c43f0136153752e6f731
tree7e188a3fe17ebcc8656ff4553a7a07a97ee95845
parent98ad1dd06a02096fff6c65703a85b9f3c3de1a7d
device property: Replace custom implementation of COUNT_ARGS()

Replace custom and non-portable implementation of COUNT_ARGS().

Fixes: e64b674bc9d7 ("software node: implement reference properties")
Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Closes: https://lore.kernel.org/r/ZQoILN6QCjzosCOs@google.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Closes: https://github.com/ClangBuiltLinux/linux/issues/1935
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20230920153819.2069869-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/property.h