w1: Silence ds1wm warnings related to mfd_get_cell changes
authorAndres Salomon <dilinger@queued.net>
Tue, 1 Mar 2011 21:55:07 +0000 (13:55 -0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 23 Mar 2011 09:42:02 +0000 (10:42 +0100)
commit7e5dc1f7004832f797999dfb3498a68a6c16ef73
tree7ef3cf763a638a68bd7d26a044411cb1e8396bb1
parente5c238c3fde93afdddef36aec2642155c709d93a
w1: Silence ds1wm warnings related to mfd_get_cell changes

mfd_get_cell returns a const, so change the ds1wm client to store
a const mfd cell.  This silences type mismatch warnings.

Since we're guaranteed to have the mfd_cell, we can also simplify
the code a bit to get rid of a temporary variable and NULL check.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/w1/masters/ds1wm.c