summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorCesar Eduardo Barros <cesarb@cesarb.net>2012-12-04 20:21:12 -0200
committerFelipe Balbi <balbi@ti.com>2013-01-18 15:08:42 +0200
commit63a1307930867a45f86a1a69f80315b2df7b7b49 (patch)
tree7cc885a16b207361b91c3032a7d5aeeb943c5944 /Documentation
parentb2e587dbb7a7554b56d2f38e284ad975d2f00181 (diff)
downloadlinux-63a1307930867a45f86a1a69f80315b2df7b7b49.tar.gz
linux-63a1307930867a45f86a1a69f80315b2df7b7b49.tar.bz2
linux-63a1307930867a45f86a1a69f80315b2df7b7b49.zip
usb: phy: mv-otg: use to_delayed_work instead of cast
Directly casting a work_struct pointer to a delayed_work is risky if the work member of struct delayed_work is ever moved from being the first member. Instead, use the inline function to_delayed_work(), which does the same cast in a safer way (using container_of). Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions