This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/LP5521SW-LINUX: can we make a driver for Linux 3.3?

Part Number: LP5521SW-LINUX
Other Parts Discussed in Thread: LP5521

Tool/software: Linux

Hi Team,

Customer is using our LP5521 for development.

And they are asking for driver specific for Linux 3.3.

The one we provided is for Linux 3.9, and it will show compile error under Linux 3.3, messages shown as below.

Please kindly help, thanks.

Andrew

nemo@nemo-VirtualBox:~/repoRoot/05/driver/lp5521$ make 

make ARCH=arm -C /usr/src/arm-linux-3.3/linux-3.3-fa M=/home/nemo/repoRoot/05/driver/lp5521

make[1]: Entering directory '/usr/src/arm-linux-3.3/linux-3.3-fa'

  CC [M]  /home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.o

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c: In function ‘lp55xx_set_brightness’:

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:139: error: ‘struct lp55xx_led’ has no member named ‘brightness_work’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c: In function ‘lp55xx_init_device’:

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:375: error: ‘struct lp55xx_platform_data’ has no member named ‘setup_resources’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:376: error: ‘struct lp55xx_platform_data’ has no member named ‘setup_resources’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:383: error: ‘struct lp55xx_platform_data’ has no member named ‘enable’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:384: error: ‘struct lp55xx_platform_data’ has no member named ‘enable’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:386: error: ‘struct lp55xx_platform_data’ has no member named ‘enable’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c: In function ‘lp55xx_deinit_device’:

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:424: error: ‘struct lp55xx_platform_data’ has no member named ‘enable’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:425: error: ‘struct lp55xx_platform_data’ has no member named ‘enable’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:427: error: ‘struct lp55xx_platform_data’ has no member named ‘release_resources’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:428: error: ‘struct lp55xx_platform_data’ has no member named ‘release_resources’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c: In function ‘lp55xx_register_leds’:

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:442: error: ‘struct lp55xx_device_config’ has no member named ‘brightness_work_fn’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:459: error: ‘struct lp55xx_led’ has no member named ‘brightness_work’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:459: error: ‘struct lp55xx_led’ has no member named ‘brightness_work’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:459: error: ‘struct lp55xx_led’ has no member named ‘brightness_work’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:459: error: ‘struct lp55xx_led’ has no member named ‘brightness_work’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:459: error: ‘struct lp55xx_device_config’ has no member named ‘brightness_work_fn’

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c: In function ‘lp55xx_unregister_leds’:

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:485: error: ‘struct lp55xx_led’ has no member named ‘brightness_work’

scripts/Makefile.build:305: recipe for target '/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.o' failed

make[2]: *** [/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.o] Error 1

Makefile:1365: recipe for target '_module_/home/nemo/repoRoot/05/driver/lp5521' failed

make[1]: *** [_module_/home/nemo/repoRoot/05/driver/lp5521] Error 2

make[1]: Leaving directory '/usr/src/arm-linux-3.3/linux-3.3-fa'

Makefile:16: recipe for target 'all' failed

make: *** [all] Error 2