int ret = 0;
ret = kstrtoint(buf, 0, &res);
+ if (ret) {
+ ge2d_log_err("kstrtoint err\n");
+ return -EINVAL;
+ }
+
ge2d_log_info("ge2d dump_reg_enbale: %d->%d\n",
ge2d_dump_reg_enable, res);
ge2d_dump_reg_enable = res;
int ret = 0;
ret = kstrtoint(buf, 0, &res);
+ if (ret) {
+ ge2d_log_err("kstrtoint err\n");
+ return -EINVAL;
+ }
+
ge2d_log_info("ge2d dump_reg: %d->%d\n", ge2d_dump_reg_cnt, res);
ge2d_dump_reg_cnt = res;
return count;
int ret = 0;
ret = kstrtoint(buf, 0, &res);
+ if (ret) {
+ ge2d_log_err("kstrtoint err\n");
+ return -EINVAL;
+ }
+
ge2d_log_info("ge2d log_level: %d->%d\n", ge2d_log_level, res);
ge2d_log_level = res;