Commit 6b8fb5ec authored by Ding Xiang's avatar Ding Xiang Committed by Greg Kroah-Hartman
Browse files

staging: fieldbus: use kobj_to_dev() to get device



Use kobj_to_dev() instead of container_of()

Signed-off-by: default avatarDing Xiang <dingxiang@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20201117025933.668938-1-dingxiang@cmss.chinamobile.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ba3e4a2a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment