sonic-buildimage/platform/pddf/i2c/modules/include
FuzailBrcm 93247a6e24
[pddf]: Update PDDF kernel modules with 5.10 kernel and fix some compilation (#9582)
- Why I did it
There were compilation errors and warnings like,

/usr/src/linux-headers-5.10.0-8-2-common/scripts/Makefile.build:69: You cannot use subdir-y/m to visit a module Makefile. Use obj-y/m instead.

fatal error: linux/platform_data/pca954x.h: No such file or directory

hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().

If PDDF kernel module compilation fails, the PDDF debian package was not detecting the break.

- How I did it
Modified the code with new kernel 5.10 APIs.
Modified the Makefiles to use 'obj-m' instead of 'subdir-y'

- How to verify it
PDDF is supported on Accton platform. Load the build on AS7326 setup and check the 'dmesg'
2022-01-02 22:24:19 -08:00
..
pddf_client_defs.h Platform Driver Developement Framework (PDDF) (#4756) 2020-11-12 10:22:38 -08:00
pddf_cpld_defs.h [pddf]: Update PDDF kernel modules with 5.10 kernel and fix some compilation (#9582) 2022-01-02 22:24:19 -08:00
pddf_cpldmux_defs.h Platform Driver Developement Framework (PDDF) (#4756) 2020-11-12 10:22:38 -08:00
pddf_fan_api.h Platform Driver Developement Framework (PDDF) (#4756) 2020-11-12 10:22:38 -08:00
pddf_fan_defs.h Platform Driver Developement Framework (PDDF) (#4756) 2020-11-12 10:22:38 -08:00
pddf_fan_driver.h Platform Driver Developement Framework (PDDF) (#4756) 2020-11-12 10:22:38 -08:00
pddf_gpio_defs.h Platform Driver Developement Framework (PDDF) (#4756) 2020-11-12 10:22:38 -08:00
pddf_led_defs.h Platform Driver Developement Framework (PDDF) (#4756) 2020-11-12 10:22:38 -08:00
pddf_mux_defs.h [pddf]: Update PDDF kernel modules with 5.10 kernel and fix some compilation (#9582) 2022-01-02 22:24:19 -08:00
pddf_psu_api.h Platform Driver Developement Framework (PDDF) (#4756) 2020-11-12 10:22:38 -08:00
pddf_psu_defs.h Platform Driver Developement Framework (PDDF) (#4756) 2020-11-12 10:22:38 -08:00
pddf_psu_driver.h Platform Driver Developement Framework (PDDF) (#4756) 2020-11-12 10:22:38 -08:00
pddf_sysstatus_defs.h Platform Driver Developement Framework (PDDF) (#4756) 2020-11-12 10:22:38 -08:00
pddf_xcvr_api.h Platform Driver Developement Framework (PDDF) (#4756) 2020-11-12 10:22:38 -08:00
pddf_xcvr_defs.h [pddf]: Update PDDF kernel modules with 5.10 kernel and fix some compilation (#9582) 2022-01-02 22:24:19 -08:00