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:我们是否可以为 Linux 3.3创建驱动程序?

Guru**** 2393725 points
Other Parts Discussed in Thread: LP5521

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/power-management-group/power-management/f/power-management-forum/652966/linux-lp5521sw-linux-can-we-make-a-driver-for-linux-3-3

器件型号:LP5521SW-Linux
主题中讨论的其他器件:LP5521

工具/软件:Linux

大家好、

客户正在使用我们的 LP5521进行开发。

他们要求提供特定于 Linux 3.3的驱动程序。

我们提供的版本适用于 Linux 3.9、它将在 Linux 3.3下显示编译错误、如下所示。

请提供帮助,谢谢。

Andrew

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

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

make[1]:输入目录'/usr/src/arm-linux-3.3/linux-3.3-fa

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

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:在函数‘lp55xx_set_brightness’中:

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:139:‘S:“结构 lp55xx_led”没有名为‘brightnation_work’的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:在函数‘lp55xx_init_device’中:

‘S:375:‘s:“结构 lp55xx_platform_data”没有名为“etup_resources”的成员/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:376:‘s:‘S:“结构 lp55xx_platform_data”没有名为“etup_resources”的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:383:‘S:“结构 lp55xx_platform_data”没有名为‘enable’的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:384:‘S:“结构 lp55xx_platform_data”没有名为‘enable’的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:386:‘S:“结构 lp55xx_platform_data”没有名为‘enable’的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:在函数‘lp55xx_deinit_device’中:

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:424:‘S:“结构 lp55xx_platform_data”没有名为‘enable’的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:425:‘S:“结构 lp55xx_platform_data”没有名为‘enable’的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:427:‘re:‘S:“结构 lp55xx_platform_data”没有名为 lear_resources’的成员

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

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:在函数‘lp55xx_register_LEDs’中:

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:442:‘:‘S:“结构 lp55xx_device_config”没有名为 brightn_work _fn’的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:459:‘:‘S:“结构 lp55xx_led”没有名为 brightnation_work’的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:459:‘:‘S:“结构 lp55xx_led”没有名为 brightnation_work’的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:459:‘:‘S:“结构 lp55xx_led”没有名为 brightnation_work’的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:459:‘:‘S:“结构 lp55xx_led”没有名为 brightnation_work’的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:459:‘S:“‘lp55xx_device_config”没有名为 brightn_work _fn’的成员

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:在函数‘lp55xx_unregister_LEDs’中:

/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.c:485:‘S:“结构 lp55xx_led”没有名为‘brightnation_work’的成员

Scripts/Makefile.build:305:目标'/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.o 的配方失败

maked[2]:***[/home/nemo/repoRoot/05/driver/lp5521/leds-lp55xx-common.o 错误1.

Makefile:1365:目标'_MODULE_/home/nemo/repoRoot/05/driver/lp5521的配方失败

maked[1]:***[_MODULE_/home/nemo/repoRoot/05/driver/lp5521错误2.

make[1]:离开目录'/usr/src/arm-linux-3.3/linux-3.3-fa

Makefile:16:目标'all'的配方失败

Make:***[All]错误2.

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Andrew:

    我们在 Linux 领域没有专家、您能否将文件结构重新设置为3.3格式、因为 LP5521 I2C 数据没有差异。 如需器件的更多支持、请告诉我、谢谢!

    夏季