Lines Matching refs:ret
24 int ret = i2c_master_send(c, &cmd, 1);
25 if (ret < 0)
27 return ret;
34 int ret;
37 ret = kstrtoul(buf, 10, &val);
38 if (ret)
39 return ret;
44 ret = compass_command(c, map[val]);
46 if (ret < 0)
47 return ret;
68 int ret;
71 ret = compass_command(client, 'A');
72 if (ret != 1) {
74 return ret;
77 ret = i2c_master_recv(client, i2c_data, 2);
79 if (ret < 0) {
81 return ret;
83 ret = (i2c_data[0] << 8) | i2c_data[1];
84 return sprintf(buf, "%d.%d\n", ret/10, ret%10);