1. 19 Jun, 2012 2 commits
    • Ian Abbott's avatar
      staging: comedi: change device used in dev_...() calls · f41ad667
      Ian Abbott authored
      A previous set of patches by Ravishankar Karkala Mallikarjunayya
      replaced a load of printk() calls with dev_info(), dev_err(), etc.
      Unfortunately, these used the 'struct device *hw_dev' member of 'struct
      comedi_device') as the first parameter of these dev_...() calls, but
      that pointer is usually NULL, so the kernel log messages come out a bit
      wrong (they contain the phrase "(NULL device *)").
      
      Use the 'struct device *class_dev' member of 'struct comedi_device'
      instead for these dev_...() calls.  It will be non-NULL and somewhat
      meaningful to users.  It's also consistent with those comedi drivers
      that already use the class_dev member in their dev_...() calls.
      
      Some of the messages included the format "comedi%d" with the minor
      device number used for the "%d".  This is now redundant as it will be
      the same as the dev_name() part of the kernel log message produced by
      the dev_...() calls.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f41ad667
    • Christopher Brannon's avatar
      Staging: speakup: fix an improperly-declared variable. · 4ea418b8
      Christopher Brannon authored
      A local static variable was declared as a pointer to a string
      constant.  We're assigning to the underlying memory, so it
      needs to be an array instead.
      Signed-off-by: default avatarChristopher Brannon <chris@the-brannons.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4ea418b8
  2. 15 Jun, 2012 27 commits
  3. 14 Jun, 2012 11 commits