{
unsigned int type;
- if (kstrtouint(buf, 10, &type) != 1)
+ if (kstrtouint(buf, 10, &type) != 0)
return -EINVAL;
cec_dev->dev_type = type;
{
unsigned int id;
- if (kstrtouint(buf, 16, &id) != 1)
+ if (kstrtouint(buf, 16, &id) != 0)
return -EINVAL;
cec_dev->cec_info.vendor_id = id;
return count;
{
unsigned int seq;
- if (kstrtouint(buf, 16, &seq) != 1)
+ if (kstrtouint(buf, 16, &seq) != 0)
return -EINVAL;
CEC_ERR("port_seq:%x\n", seq);
{
int addr;
- if (kstrtouint(buf, 16, &addr) != 1)
+ if (kstrtouint(buf, 16, &addr) != 0)
return -EINVAL;
if (addr > 0xffff || addr < 0) {
CEC_ERR("invalid input:%s\n", buf);
{
int en;
- if (kstrtouint(buf, 16, &en) != 1)
+ if (kstrtouint(buf, 16, &en) != 0)
return -EINVAL;
cec_msg_dbg_en = en ? 1 : 0;