diff options
author | Martyn Welch <martyn.welch@collabora.com> | 2024-09-12 20:37:40 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-09-14 06:01:11 +0300 |
commit | 9c699a8f3b273c62f7b364ff999e873501a1e834 (patch) | |
tree | 6417145a9dbda722ebb6631f398b41a4f0b405cf /scripts/lib/kdoc/kdoc_files.py | |
parent | 9297886f9fcd20176a2eb68961c79f4f0b99e117 (diff) | |
download | linux-9c699a8f3b273c62f7b364ff999e873501a1e834.tar.xz |
net: enetc: Replace ifdef with IS_ENABLED
The enetc driver uses ifdefs when checking whether
CONFIG_FSL_ENETC_PTP_CLOCK is enabled in a number of places. This works
if the driver is built-in but fails if the driver is available as a
kernel module. Replace the instances of ifdef with use of the IS_ENABLED
macro, that will evaluate as true when this feature is built as a kernel
module and follows the kernel's coding style.
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240912173742.484549-1-martyn.welch@collabora.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions