93247a6e24
- 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'
33 lines
930 B
C
33 lines
930 B
C
/*
|
|
* Copyright 2019 Broadcom.
|
|
* The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*
|
|
* Description:
|
|
* Platform CPLD defines/structures header file
|
|
*/
|
|
|
|
#ifndef __PDDF_CPLD_DEFS_H__
|
|
#define __PDDF_CPLD_DEFS_H__
|
|
|
|
#define CPLD_CLIENT_NAME_LEN 32
|
|
/* CPLD DATA - DATA FOR CPLD CLIENT READ/WRITE*/
|
|
typedef struct CPLD_DATA
|
|
{
|
|
struct mutex cpld_lock;
|
|
uint16_t reg_addr;
|
|
}PDDF_CPLD_DATA;
|
|
|
|
|
|
#endif
|