wifi: cfg80211: Add KHZ_PER_GHZ to units.h and reuse
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 15 Feb 2024 15:41:36 +0000 (17:41 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Feb 2024 14:19:03 +0000 (15:19 +0100)
commitf79ab5d2bced9bd7c0ce86d2aa5b70d053001bb4
tree43d4f5fc8615a17523285e991c9076f2a76d4478
parentba4b1fa3128b2fbf14e167230315cbd9074b629b
wifi: cfg80211: Add KHZ_PER_GHZ to units.h and reuse

The KHZ_PER_GHZ might be used by others (with the name aligned
with similar constants). Define it in units.h and convert
wireless to use it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://msgid.link/20240215154136.630029-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/units.h
net/wireless/reg.c