mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
net: can: mttcan: Drop unnecessary version checks
GPIO descriptor support has been supported in the Linux kernel since v3.16. Therefore, simplify the MTTCAN driver by removing the legacy GPIO support and only use GPIO descriptors. Bug 4119327 Bug 4228080 Change-Id: Ib1c50d17c514dee6a5c69145a8f5d3e07b5b3855 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2981396 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
4ae0f1a759
commit
8f976ab022
@@ -76,11 +76,7 @@ struct tegra_mttcan_soc_info {
|
||||
};
|
||||
|
||||
struct can_gpio {
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)
|
||||
int gpio;
|
||||
#else
|
||||
struct gpio_desc *gpio;
|
||||
#endif
|
||||
int active_low;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user