• Stephen Boyd's avatar
    hwmon: (lm70) Use device_get_match_data() · 6e09d755
    Stephen Boyd authored
    
    
    Use the more modern API to get the match data out of the of match table.
    This saves some code, lines, and nicely avoids referencing the match
    table when it is undefined with configurations where CONFIG_OF=n.
    Signed-off-by: default avatarStephen Boyd <swboyd@chromium.org>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Cc: Jean Delvare <jdelvare@suse.com>
    Cc: Guenter Roeck <linux@roeck-us.net>
    Cc: Rob Herring <robh+dt@kernel.org>
    Cc: Frank Rowand <frowand.list@gmail.com>
    Cc: <linux-hwmon@vger.kernel.org>
    [robh: rework to use device_get_match_data()]
    Signed-off-by: default avatarRob Herring <robh@kernel.org>
    6e09d755
lm70.c 5.27 KB