11 Oct, 2019
1 commit
-
Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.Signed-off-by: YueHaibing
Signed-off-by: Jakub Kicinski
26 Jul, 2019
1 commit
-
devm_ioremap_resource already contains error message, so remove
the redundant dev_err messageSigned-off-by: Ding Xiang
Signed-off-by: David S. Miller
23 Oct, 2018
1 commit
-
We should get 'driver_data' from 'struct device' directly. Going via
platform_device is an unneeded step back and forth.Signed-off-by: Wolfram Sang
Acked-by: Richard Cochran
Signed-off-by: David S. Miller
07 Jul, 2018
1 commit
-
At over 4000 #includes, is the 9th most
#included header file in the Linux kernel. It does not need
, so drop that header and explicitly add
to source files that need it.4146 #include
After this patch, there are 225 files that use ,
for a reduction of around 3900 times that
does not have to be read & parsed.225 #include
This patch was build-tested on 20 different arch-es.
It also makes these drivers SubmitChecklist#1 compliant.
Signed-off-by: Randy Dunlap
Reported-by: kbuild test robot # drivers/media/platform/vimc/
Reported-by: kbuild test robot # drivers/pinctrl/pinctrl-u300.c
Signed-off-by: Greg Kroah-Hartman
23 Aug, 2017
1 commit
-
Make these const as they are only used in a copy operation.
Done using Coccinelle.@match disable optional_qualifier@
identifier s;
@@
static struct ptp_clock_info s = {...};@ref@
position p;
identifier match.s;
@@
s@p@good1@
position ref.p;
identifier match.s,f,c;
expression e;
@@
(
e = s@p
|
e = s@p.f
|
c(...,s@p.f,...)
|
c(...,s@p,...)
)@bad depends on !good1@
position ref.p;
identifier match.s;
@@
s@p@depends on forall !bad disable optional_qualifier@
identifier match.s;
@@
static
+ const
struct ptp_clock_info s;Signed-off-by: Bhumika Goyal
Acked-by: Richard Cochran
Signed-off-by: David S. Miller
06 Jul, 2017
1 commit
-
With gcc 4.1.2:
drivers/ptp/ptp_dte.c: In function ‘dte_write_nco_delta’:
drivers/ptp/ptp_dte.c:105: warning: integer constant is too large for ‘long’ type
drivers/ptp/ptp_dte.c:112: warning: integer constant is too large for ‘long’ type
drivers/ptp/ptp_dte.c:114: warning: integer constant is too large for ‘long’ typeAdd the missing "LL" suffix to fix this.
Fixes: 8a56aa107f1e8123 ("ptp: Add a ptp clock driver for Broadcom DTE")
Signed-off-by: Geert Uytterhoeven
Signed-off-by: David S. Miller
16 Jun, 2017
1 commit
-
This patch adds a ptp clock driver for the Broadcom SoCs using
the Digital timing Engine (DTE) nco.Signed-off-by: Arun Parameswaran
Signed-off-by: David S. Miller