Home
last modified time | relevance | path

Searched refs:irtoy (Results 1 – 1 of 1) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/media/rc/
H A Dir_toy.c54 struct irtoy { struct
79 static void irtoy_response(struct irtoy *irtoy, u32 len) in irtoy_response() argument
81 switch (irtoy->state) { in irtoy_response()
83 if (len == LEN_VERSION && irtoy->in[0] == REPLY_VERSION) { in irtoy_response()
86 irtoy->in[LEN_VERSION] = 0; in irtoy_response()
88 if (kstrtouint(irtoy->in + 1, 10, &version)) { in irtoy_response()
89 …dev_err(irtoy->dev, "invalid version %*phN. Please make sure you are using firmware v20 or higher", in irtoy_response()
90 LEN_VERSION, irtoy->in); in irtoy_response()
94 dev_dbg(irtoy->dev, "version %s\n", irtoy->in); in irtoy_response()
96 irtoy->hw_version = version / 100; in irtoy_response()
[all …]