Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b8edff2 authored by Swetha Chikkaboraiah's avatar Swetha Chikkaboraiah Committed by Gerrit - the friendly Code Review server
Browse files

clk: msm: Fix compilation errors with clang



Fix -Wliteral-conversion specific compilation errors.

Change-Id: I91ec707f1099dcd01af9be71fed3dac2b399dfaf
Signed-off-by: default avatarSwetha Chikkaboraiah <schikk@codeaurora.org>
parent 26bf32af
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2016, 2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -42,7 +42,7 @@ static void __iomem *virt_dbgbase;
#define gpll0_out_main_source_val 1
#define gpll4_out_main_source_val 5

#define FIXDIV(div) (div ? (2 * (div) - 1) : (0))
#define FIXDIV(div) ((int)div ? (2 * (div) - 1) : (0))

#define F(f, s, div, m, n) \
	{ \
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2017, 2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -44,7 +44,7 @@ static void __iomem *virt_dbgbase;
#define gpll4_out_main_source_val 5
#define gpll0_early_div_source_val 6

#define FIXDIV(div) (div ? (2 * (div) - 1) : (0))
#define FIXDIV(div) ((int)div ? (2 * (div) - 1) : (0))

#define F(f, s, div, m, n) \
	{ \
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016, 2018 The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2016, 2018, 2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -53,7 +53,7 @@ static void __iomem *virt_base_gpu;
#define dsi1phypll_mm_source_val		2
#define ext_extpclk_clk_src_mm_source_val	1

#define FIXDIV(div) (div ? (2 * (div) - 1) : (0))
#define FIXDIV(div) ((int)div ? (2 * (div) - 1) : (0))

#define F_MM(f, s, div, m, n) \
	{ \
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2016-2017, 2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -51,7 +51,7 @@ static void __iomem *virt_base;
#define ext_dp_phy_pll_link_mm_source_val	1
#define ext_dp_phy_pll_vco_mm_source_val	2

#define FIXDIV(div) (div ? (2 * (div) - 1) : (0))
#define FIXDIV(div) ((int)div ? (2 * (div) - 1) : (0))

#define F_MM(f, s, div, m, n) \
	{ \
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2018, 2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -272,7 +272,7 @@ static void __iomem *debug_base;
#define ACD_REG_RELATIVE_ADDR_BITMASK(addr) \
			(1 << (ACD_REG_RELATIVE_ADDR(addr)))

#define FIXDIV(div) (div ? (2 * (div) - 1) : (0))
#define FIXDIV(div) ((int)div ? (2 * (div) - 1) : (0))

#define F(f, s, div, m, n) \
	{ \