1. 01 Sep, 2017 1 commit
    • Julia Lawall's avatar
      powerpc/macintosh: constify wf_sensor_ops structures · de854e54
      Julia Lawall authored
      The wf_sensor_ops structures are only stored in the ops field of a
      wf_sensor structure, which is declared as const.  Thus the
      wf_sensor_ops structures themselves can be const.
      
      Done with the help of Coccinelle.
      
      // <smpl>
      @r disable optional_qualifier@
      identifier i;
      position p;
      @@
      static struct wf_sensor_ops i@p = { ... };
      
      @ok1@
      identifier r.i;
      struct wf_sensor s;
      position p;
      @@
      s.ops = &i@p
      
      @ok2@
      identifier r.i;
      struct wf_sat_sensor s;
      position p;
      @@
      s.sens.ops = &i@p
      
      @bad@
      position p != {r.p,ok1.p,ok2.p};
      identifier r.i;
      struct wf_sensor_ops e;
      @@
      e@i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r.i;
      @@
      static
      +const
       struct wf_sensor_ops i = { ... };
      // </smpl>
      Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      de854e54
  2. 05 Dec, 2013 1 commit
  3. 15 Nov, 2012 1 commit
  4. 30 Apr, 2012 2 commits
  5. 28 Mar, 2012 1 commit
  6. 03 Jun, 2010 1 commit
  7. 09 Feb, 2010 1 commit
  8. 04 Oct, 2009 1 commit
  9. 15 Jun, 2009 1 commit
  10. 29 Apr, 2008 1 commit
  11. 19 Jul, 2007 1 commit
  12. 07 May, 2007 1 commit
  13. 27 Apr, 2007 1 commit
  14. 26 Apr, 2007 1 commit
  15. 12 Apr, 2007 1 commit
  16. 23 Mar, 2006 1 commit
  17. 03 Mar, 2006 1 commit
    • Benjamin Herrenschmidt's avatar
      [PATCH] powerpc: Fix old g5 issues with windfarm · b55fafc5
      Benjamin Herrenschmidt authored
      Some of the windfarm sensor modules can initialize on old machines that
      don't have full windfarm support like non-dual core desktop G5s.
      Unfortunately, by doing so, they would trigger a bug in their matching
      algorithm causing them to attach to the wrong bus, thus triggering
      issues with the i2c core and breaking the thermal driver.
      
      This patch fixes the probing issue (so that they will work when a
      windfarm port is done to these machines) and also prevents for now
      windfarm to load at all on these machines that still use therm_pm72 to
      avoid wasting resources.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      b55fafc5
  18. 09 Jan, 2006 1 commit
    • Benjamin Herrenschmidt's avatar
      [PATCH] 2/5 powerpc: Rework PowerMac i2c part 2 · a28d3af2
      Benjamin Herrenschmidt authored
      This is the continuation of the previous patch. This one removes the old
      PowerMac i2c drivers (i2c-keywest and i2c-pmac-smu) and replaces them
      both with a single stub driver that uses the new PowerMac low i2c layer.
      
      Now that i2c-keywest is gone, the low-i2c code is extended to support
      interrupt driver transfers. All i2c busses now appear as platform
      devices. Compatibility with existing drivers should be maintained as the
      i2c bus names have been kept identical, except for the SMU bus but in
      that later case, all users has been fixed.
      
      With that patch added, matching a device node to an i2c_adapter becomes
      trivial.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      a28d3af2
  19. 06 Jan, 2006 4 commits
  20. 08 Nov, 2005 1 commit