找回密码
 注册
搜索
查看: 1049|回复: 1

[讨论] 75平台android 4.0 Touchpanel的编译问题

[复制链接]
发表于 2012-9-8 01:18:55 | 显示全部楼层 |阅读模式
代码:
static const struct i2c_device_id tpd_id[] = {{"cy8ctst242",0},{}};
static unsigned short force[] = {0,0x48,I2C_CLIENT_END,I2C_CLIENT_END};
static const unsigned short * const forces[] = { force, NULL };
static struct i2c_client_address_data addr_data = { .forces = forces, };


错误信息:
cy8ctst242_driver.c:603: error: variable 'addr_data' has initializer but incomplete type
cy8ctst242_driver.c:603: error: unknown field 'forces' specified in initializer

哪位大侠知道该如何解决呢?

3q!
发表于 2012-9-10 09:07:53 | 显示全部楼层
static struct i2c_client_address_data addr_data = { .forces = forces, };

这个去掉啊, 你看那原生代码中的TP里面怎么搞的, 就知道了
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-12-24 09:49 , Processed in 0.047483 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表