|
@@ -997,7 +997,7 @@ err_fw_prepare:
|
|
|
* '6'[110] update in unblocking mode with fwdata from request
|
|
|
*/
|
|
|
static ssize_t goodix_sysfs_update_en_store(
|
|
|
- struct device *dev, struct device_attribute *attr,
|
|
|
+ struct kobject *kobj, struct kobj_attribute *attr,
|
|
|
const char *buf, size_t count)
|
|
|
{
|
|
|
int ret = 0;
|
|
@@ -1066,7 +1066,7 @@ static ssize_t goodix_sysfs_fwimage_store(struct file *file,
|
|
|
|
|
|
/* return fw_update result */
|
|
|
static ssize_t goodix_sysfs_result_show(
|
|
|
- struct device *dev, struct device_attribute *attr,
|
|
|
+ struct kobject *kobj, struct kobj_attribute *attr,
|
|
|
char *buf)
|
|
|
{
|
|
|
struct fw_update_ctrl *fw_ctrl = &goodix_fw_update_ctrl;
|
|
@@ -1101,12 +1101,14 @@ static ssize_t goodix_sysfs_result_show(
|
|
|
return r;
|
|
|
}
|
|
|
|
|
|
-static DEVICE_ATTR(update_en, 0220, NULL, goodix_sysfs_update_en_store);
|
|
|
-static DEVICE_ATTR(result, 0664, goodix_sysfs_result_show, NULL);
|
|
|
+static struct kobj_attribute goodix_sysfs_update =
|
|
|
+ __ATTR(update_en, 0220, NULL, goodix_sysfs_update_en_store);
|
|
|
+static struct kobj_attribute goodix_sysfs_result =
|
|
|
+ __ATTR(result, 0664, goodix_sysfs_result_show, NULL);
|
|
|
|
|
|
static struct attribute *goodix_fwu_attrs[] = {
|
|
|
- &dev_attr_update_en.attr,
|
|
|
- &dev_attr_result.attr
|
|
|
+ &goodix_sysfs_update.attr,
|
|
|
+ &goodix_sysfs_result.attr
|
|
|
};
|
|
|
|
|
|
static int goodix_fw_sysfs_init(struct goodix_ts_core *core_data,
|