# Re: \[PATCH 2/4\] input: keyboard/mouse/touchscreen/misc: Use dev\_get\_drvdata()

- From: Fuqian Huang \<hidden\>
- Date: 2019-07-02 08:18:46 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2019/07/5645640
- Thread: https://ratatoskr.run/linux-input/2019/07/5644382/t.md

```text
I am not an expert on this. I just write a coccinelle script to search
this kind of misuse and fix it in a naive way.
Could you tell me about how to use the proper bus accessors? Then I
will fix it up and resend a v2 patch set.

Thanks.

Dmitry Torokhov [ref] 於 2019年7月1日週一 下午3:52寫道：
>
> Hi Fuqian,
>
> On Mon, Jul 01, 2019 at 11:23:12AM +0800, Fuqian Huang wrote:
> > Using dev_get_drvdata directly.
> >
>
> I prefer using proper bus accessors.
>
> Thanks.
>
> --
> Dmitry
```
