24 Sep, 2020

1 commit

  • This driver doesn't use the id information provided by the old i2c
    probe function, so it can trivially be converted to the simple
    ("probe_new") form.

    Signed-off-by: Stephen Kitt
    Link: https://lore.kernel.org/r/20200813162544.1516647-1-steve@sk2.org
    Signed-off-by: Guenter Roeck

    Stephen Kitt
     

24 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version this program is distributed in the
    hope that it will be useful but without any warranty without even
    the implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details you
    should have received a copy of the gnu general public license along
    with this program if not write to the free software foundation inc
    675 mass ave cambridge ma 02139 usa

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 441 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Michael Ellerman (powerpc)
    Reviewed-by: Richard Fontana
    Reviewed-by: Allison Randal
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190520071858.739733335@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

30 Oct, 2017

1 commit

  • The setting of newval to zero is redundant as the following if/else
    stanzas will always update newval to a new value. Remove the
    redundant setting, cleans up clang build warning:

    drivers/hwmon/asc7621.c:582:2: warning: Value stored to 'newval' is
    never read

    Signed-off-by: Colin Ian King
    Signed-off-by: Guenter Roeck

    Colin Ian King
     

30 Aug, 2017

1 commit

  • Don't populate the arrays on the stack, instead make them static.
    Makes the object code smaller by over 950 bytes:

    Before:
    text data bss dec hex filename
    26144 18768 352 45264 b0d0 drivers/hwmon/asc7621.o

    After:
    text data bss dec hex filename
    25029 18928 352 44309 ad15 drivers/hwmon/asc7621.o

    Signed-off-by: Colin Ian King
    Signed-off-by: Guenter Roeck

    Colin Ian King
     

04 Aug, 2014

1 commit


05 Apr, 2014

1 commit


14 Oct, 2013

1 commit


08 Apr, 2013

1 commit


26 Jan, 2013

1 commit

  • SENSORS_LIMIT and the generic clamp_val have the same functionality,
    and clamp_val is more efficient.

    This patch reduces text size by 9052 bytes and bss size by 11624 bytes
    for x86_64 builds.

    Signed-off-by: Guenter Roeck
    Acked-by: George Joseph
    Acked-by: Jean Delvare

    Guenter Roeck
     

22 Jul, 2012

1 commit


19 Mar, 2012

1 commit


06 Jan, 2012

1 commit


29 Oct, 2010

1 commit

  • We can mark normal_i2c const. Almost all drivers do that already, so
    fix the 3 remaining ones before they are used as (bad) examples for
    new drivers.

    Signed-off-by: Jean Delvare
    Cc: George Joseph
    Reviewed-by: Guenter Roeck

    Jean Delvare
     

15 Aug, 2010

1 commit


03 Jun, 2010

1 commit

  • I2C drivers can use the clientdata-pointer to point to private data. As I2C
    devices are not really unregistered, but merely detached from their driver, it
    used to be the drivers obligation to clear this pointer during remove() or a
    failed probe(). As a couple of drivers forgot to do this, it was agreed that it
    was cleaner if the i2c-core does this clearance when appropriate, as there is
    no guarantee for the lifetime of the clientdata-pointer after remove() anyhow.
    This feature was added to the core with commit
    e4a7b9b04de15f6b63da5ccdd373ffa3057a3681 to fix the faulty drivers.

    As there is no need anymore to clear the clientdata-pointer, remove all current
    occurrences in the drivers to simplify the code and prevent confusion.

    Signed-off-by: Wolfram Sang
    Acked-by: Mark Brown
    Acked-by: Greg Kroah-Hartman
    Acked-by: Richard Purdie
    Acked-by: Dmitry Torokhov
    Signed-off-by: Jean Delvare

    Wolfram Sang
     

11 May, 2010

1 commit

  • * Allow fan minimum RPM to be set to zero without triggering alarms.
    * Fix voltage scaling arithmetic and correct scale factors.
    * Correct fan1-fan4 alarm bit shifts.
    * Correct register address for temp3_smoothing_enable.
    * Read the alarm registers with high priority.

    Signed-off-by: Ken Milmore
    Signed-off-by: Jean Delvare

    Ken Milmore
     

06 Mar, 2010

1 commit