0259-clk-bcm2835-clean-up-coding-style-issues.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. From 97799edbda33efb8ebb20785bc7ad76c1b8a0aa9 Mon Sep 17 00:00:00 2001
  2. From: Martin Sperl <kernel@martin.sperl.org>
  3. Date: Mon, 29 Feb 2016 11:39:22 +0000
  4. Subject: [PATCH 259/381] clk: bcm2835: clean up coding style issues
  5. Fix all the checkpatch complaints for clk-bcm2835.c
  6. Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
  7. Signed-off-by: Eric Anholt <eric@anholt.net>
  8. (cherry picked from commit 6e1e60dacee7b32aef1468ea461b02e4c7a90a45)
  9. ---
  10. drivers/clk/bcm/clk-bcm2835.c | 8 ++------
  11. 1 file changed, 2 insertions(+), 6 deletions(-)
  12. --- a/drivers/clk/bcm/clk-bcm2835.c
  13. +++ b/drivers/clk/bcm/clk-bcm2835.c
  14. @@ -12,9 +12,6 @@
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. - * You should have received a copy of the GNU General Public License
  19. - * along with this program; if not, write to the Free Software
  20. - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. */
  22. /**
  23. @@ -299,7 +296,7 @@
  24. struct bcm2835_cprman {
  25. struct device *dev;
  26. void __iomem *regs;
  27. - spinlock_t regs_lock;
  28. + spinlock_t regs_lock; /* spinlock for all clocks */
  29. const char *osc_name;
  30. struct clk_onecell_data onecell;
  31. @@ -1344,7 +1341,7 @@ static int bcm2835_clock_set_rate(struct
  32. }
  33. static int bcm2835_clock_determine_rate(struct clk_hw *hw,
  34. - struct clk_rate_request *req)
  35. + struct clk_rate_request *req)
  36. {
  37. struct bcm2835_clock *clock = bcm2835_clock_from_hw(hw);
  38. struct clk_hw *parent, *best_parent = NULL;
  39. @@ -1402,7 +1399,6 @@ static u8 bcm2835_clock_get_parent(struc
  40. return (src & CM_SRC_MASK) >> CM_SRC_SHIFT;
  41. }
  42. -
  43. static const struct clk_ops bcm2835_clock_clk_ops = {
  44. .is_prepared = bcm2835_clock_is_on,
  45. .prepare = bcm2835_clock_on,