1. 09 Oct, 2009 2 commits
    • Luca Tettamanti's avatar
      hwmon: (asus_atk0110) Refactor the code · 18e25555
      Luca Tettamanti authored
      Refactor the code of the new style interface around GGRP (enumeration) and
      GITM (read) helpers to mimic ASL code. Also switch the read path to use
      dynamic buffers (handled by ACPI core) since ASUS expanded the return buffer
      (ASBF) in newer boards (e.g. P7P55D).
      Signed-off-by: default avatarLuca Tettamanti <kronos.it@gmail.com>
      Tested-by: default avatarRobert Hancock <hancockrwd@gmail.com>
      Tested-by: default avatarThomas Backlund <tmb@mandriva.org>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      18e25555
    • Rakib Mullick's avatar
      hwmon: (sht15) Fix spurious section mismatch warning · cb0f1a1e
      Rakib Mullick authored
      Fix spurious section mismatch warnings, caused due to reference from
      variable sht_drivers to
       __devinit/__devexit functions sht15_probe()/remove().
      
       We were warned by the following warnings:
      
        LD      drivers/hwmon/built-in.o
      WARNING: drivers/hwmon/built-in.o(.data+0x264a0): Section mismatch in
      reference from the variable sht_drivers to the function
      .devinit.text:sht15_probe()
      The variable sht_drivers references
      the function __devinit sht15_probe()
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: drivers/hwmon/built-in.o(.data+0x264a4): Section mismatch in
      reference from the variable sht_drivers to the function
      .devexit.text:sht15_remove()
      The variable sht_drivers references
      the function __devexit sht15_remove()
      If the reference is valid then annotate the
      variable with __exit* (see linux/init.h) or name the variable:
      *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: drivers/hwmon/built-in.o(.data+0x264f0): Section mismatch in
      reference from the variable sht_drivers to the function
      .devinit.text:sht15_probe()
      The variable sht_drivers references
      the function __devinit sht15_probe()
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: drivers/hwmon/built-in.o(.data+0x264f4): Section mismatch in
      reference from the variable sht_drivers to the function
      .devexit.text:sht15_remove()
      The variable sht_drivers references
      the function __devexit sht15_remove()
      If the reference is valid then annotate the
      variable with __exit* (see linux/init.h) or name the variable:
      *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: drivers/hwmon/built-in.o(.data+0x26540): Section mismatch in
      reference from the variable sht_drivers to the function
      .devinit.text:sht15_probe()
      The variable sht_drivers references
      the function __devinit sht15_probe()
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: drivers/hwmon/built-in.o(.data+0x26544): Section mismatch in
      reference from the variable sht_drivers to the function
      .devexit.text:sht15_remove()
      The variable sht_drivers references
      the function __devexit sht15_remove()
      If the reference is valid then annotate the
      variable with __exit* (see linux/init.h) or name the variable:
      *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      
      WARNING: drivers/hwmon/built-in.o(.data+0x26590): Section mismatch in
      reference from the variable sht_drivers to the function
      .devinit.text:sht15_probe()
      The variable sht_drivers references
      the function __devinit sht15_probe()
      If the reference is valid then annotate the
      variable with __init* or __refdata (see linux/init.h) or name the variable:
      *driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console,
      Signed-off-by: default avatarRakib Mullick <rakib.mullick@gmail.com>
      Cc: Jonathan Cameron <jic23@cam.ac.uk>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      cb0f1a1e
  2. 08 Oct, 2009 38 commits