Skip to content

Commit 6e1e60d

Browse files
msperlanholt
authored andcommitted
clk: bcm2835: clean up coding style issues
Fix all the checkpatch complaints for clk-bcm2835.c Signed-off-by: Martin Sperl <[email protected]> Signed-off-by: Eric Anholt <[email protected]>
1 parent 959ca92 commit 6e1e60d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

drivers/clk/bcm/clk-bcm2835.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1313
* GNU General Public License for more details.
1414
*
15-
* You should have received a copy of the GNU General Public License
16-
* along with this program; if not, write to the Free Software
17-
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1815
*/
1916

2017
/**
@@ -299,7 +296,7 @@
299296
struct bcm2835_cprman {
300297
struct device *dev;
301298
void __iomem *regs;
302-
spinlock_t regs_lock;
299+
spinlock_t regs_lock; /* spinlock for all clocks */
303300
const char *osc_name;
304301

305302
struct clk_onecell_data onecell;
@@ -1328,7 +1325,7 @@ static int bcm2835_clock_set_rate(struct clk_hw *hw,
13281325
}
13291326

13301327
static int bcm2835_clock_determine_rate(struct clk_hw *hw,
1331-
struct clk_rate_request *req)
1328+
struct clk_rate_request *req)
13321329
{
13331330
struct bcm2835_clock *clock = bcm2835_clock_from_hw(hw);
13341331
struct clk_hw *parent, *best_parent = NULL;
@@ -1386,7 +1383,6 @@ static u8 bcm2835_clock_get_parent(struct clk_hw *hw)
13861383
return (src & CM_SRC_MASK) >> CM_SRC_SHIFT;
13871384
}
13881385

1389-
13901386
static const struct clk_ops bcm2835_clock_clk_ops = {
13911387
.is_prepared = bcm2835_clock_is_on,
13921388
.prepare = bcm2835_clock_on,

0 commit comments

Comments
 (0)