From: Gabor Juhos Date: Fri, 11 Oct 2013 11:18:40 +0000 (+0200) Subject: rt2x00: add rt2x00_has_cap_* helpers X-Git-Tag: v3.13-rc1~105^2~181^2^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a44d01419ca4f8f4bec721504fa257b6c438c77c;p=pandora-kernel.git rt2x00: add rt2x00_has_cap_* helpers The rt2x00 code directly accesses the 'cap_flags' field of 'struct rt2x00_dev' when checking presence of a given capability flag. The direct access needs long expressions which lowers readability of the code. Add a few helper functions which can be used to test device capabilities without directly accessing the cap_flags filed. Signed-off-by: Gabor Juhos Signed-off-by: John W. Linville --- Reading git-diff-tree failed