1. 20 Feb, 2017 1 commit
    • Andrew Jeffery's avatar
      ipmi: bt-bmc: Use a regmap for register access · eb994594
      Andrew Jeffery authored
      The registers for the bt-bmc device live under the Aspeed LPC
      controller. Devicetree bindings have recently been introduced for the
      LPC controller where the "host" portion of the LPC register space is
      described as a syscon device. Future devicetrees describing the bt-bmc
      device should nest its node under the appropriate "simple-mfd", "syscon"
      compatible node.
      
      This change allows the bt-bmc driver to function with both syscon and
      non-syscon- based devicetree descriptions by always using a regmap for
      register access, either retrieved from the parent syscon device or
      instantiated if none exists.
      Signed-off-by: default avatarAndrew Jeffery <andrew@aj.id.au>
      Reviewed-by: default avatarCédric Le Goater <clg@kaod.org>
      Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
      eb994594
  2. 09 Feb, 2017 2 commits
    • Bhumika Goyal's avatar
      char: ipmi: constify ipmi_smi_handlers structures · db3b7e13
      Bhumika Goyal authored
      Declare ipmi_smi_handlers structures as const as they are only passed as
      an argument to the function ipmi_register_smi. This argument is of type
      const, so ipmi_smi_handlers structures having similar properties can be
      declared const too.
      Done using Coccinelle:
      
      @r1 disable optional_qualifier@
      identifier i;
      position p;
      @@
      static struct ipmi_smi_handlers i@p={...};
      
      @ok1@
      identifier r1.i;
      position p;
      @@
      ipmi_register_smi(&i@p,...)
      
      @bad@
      position p!={r1.p,ok1.p};
      identifier r1.i;
      @@
      i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r1.i;
      @@
      +const
      struct ipmi_smi_handlers i;
      
      Size details after cross compiling the .o file for powerpc architecture
      
      File size before:
        text	   data	    bss	    dec	    hex	filename
        2777	    288	      0	   3065	    bf9	drivers/char/ipmi/ipmi_powernv.o
      
      File size after:
        text	   data	    bss	    dec	    hex	filename
         2873	    192	      0	   3065	    bf9	drivers/char/ipmi/ipmi_powernv.o
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
      db3b7e13
    • Corey Minyard's avatar
      acpi:ipmi: Make IPMI user handler const · c690d141
      Corey Minyard authored
      ipmi_create_user() now takes the user handlers as const, make
      it const in the ACPI IPMI code.
      
      Cc: linux-acpi@vger.kernel.org
      Cc: Zhao Yakui <yakui.zhao@intel.com>
      Cc: Lv Zheng <lv.zheng@intel.com>
      Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
      Acked-by: default avatarRafael J. Wysocki <rjw@rjwysocki.net>
      c690d141
  3. 05 Jan, 2017 8 commits
  4. 04 Jan, 2017 29 commits