libata: Use glob_match from lib/glob.c
authorGeorge Spelvin <linux@horizon.com>
Wed, 6 Aug 2014 23:09:27 +0000 (16:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:25 +0000 (18:01 -0700)
commit428ac5fc056e06dc0b4ed82d5979add9a8c62b35
treeab1f3f48171f0277f43af42569612b52af7143ca
parent5f9be8248d9802730185f98f4db41285dc00283c
libata: Use glob_match from lib/glob.c

The function may be useful for other drivers, so export it.  (Suggested
by Tejun Heo.)

Note that I inverted the return value of glob_match; returning true on
match seemed to make more sense.

Signed-off-by: George Spelvin <linux@horizon.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/ata/Kconfig
drivers/ata/libata-core.c