03 Apr, 2019
3 commits
-
There are a few remaining drivers/staging/*/Kconfig files that do not
have SPDX identifiers in them. Add the correct GPL-2.0 identifier to
them to make scanning tools happy.Signed-off-by: Greg Kroah-Hartman
-
Challenge suggested by coccinelle.
Prefer using BIT and replace bit shifting with the BIT(x) macro.Signed-off-by: Payal Kshirsagar
Signed-off-by: Greg Kroah-Hartman -
Challenge suggested by coccinelle.
Prefer using BIT and replace bit shifting with the BIT(x) macro.Signed-off-by: Payal Kshirsagar
Signed-off-by: Greg Kroah-Hartman
19 Mar, 2019
1 commit
-
Convert a ternary statement into a if statement which is detected while
resolving "WARNING: line over 80 characters". Use BIT() macro instead
manually left shifting.Signed-off-by: Bhagyashri Dighole
Signed-off-by: Greg Kroah-Hartman
18 Mar, 2019
5 commits
-
Added __printf attribute to declaration of fbtft_dbg_hex and fixed
mismatches between format-specifiers and arguments in several function
calls.Signed-off-by: Jeremy Sowden
Signed-off-by: Greg Kroah-Hartman -
Fix the checkpatch.pl warning
WARNING: line over 80 charactersSigned-off-by: Bhagyashri Dighole
Signed-off-by: Greg Kroah-Hartman -
Convert a macro to an inline function to improve type safety and make
the code simpler.Signed-off-by: Bhagyashri Dighole
Signed-off-by: Greg Kroah-Hartman -
Remove unused #defines, which is detected while resolving `CHECK:
Avoid CamelCase` issue.Signed-off-by: Bhagyashri Dighole
Signed-off-by: Greg Kroah-Hartman -
Fix line with over 80 characters to get rid of the warning
given by checkpatchSigned-off-by: Daniela Mormocea
Signed-off-by: Greg Kroah-Hartman
26 Feb, 2019
3 commits
-
Fix the checkpatch.pl warning:
WARNING:line over 80 characters
Move Parameters to the next lines with proper alignmentSigned-off-by: Bhanusree Pola
Signed-off-by: Greg Kroah-Hartman -
Remove unnecesessary extra blank line before the closing brace,
to solve the checkpatch.pl check:
CHECK: Extra blank line not required before closing brace '}'Signed-off-by: Bhanusree Pola
Signed-off-by: Greg Kroah-Hartman -
Clear the warning found by checkpatch.pl
WARNING:Alignment should match open parenthesisAdjust paremeters in fbtft_par_dbg and write_reg.
Signed-off-by: Bhanusree Pola
Signed-off-by: Greg Kroah-Hartman
18 Jan, 2019
1 commit
-
This switches the fbtft driver to use GPIO descriptors
rather than numerical gpios:Utilize the GPIO library's intrinsic handling of OF GPIOs
and polarity. If the line is flagged active low, gpiolib
will deal with this.Remove gpios from platform device structure. Neither assign
statically numbers to gpios in platform device nor allow
gpios to be parsed as module parameters.Signed-off-by: Nishad Kamdar
Signed-off-by: Greg Kroah-Hartman
19 Dec, 2018
1 commit
-
strncmp() stops comparing when either the end of one of the first two
arguments is reached or when 'n' characters have been compared, whichever
comes first.That means that strncmp(s1, s2, n) is equivalent to
strcmp(s1, s2) if n exceeds the length of s1 or the length of s2.This patch avoids that the following warning is reported by smatch:
drivers/staging/fbtft/fbtft_device.c:1458
fbtft_device_init() error: strncmp() '"list"' too small (5 vs 32)Signed-off-by: YueHaibing
Signed-off-by: Greg Kroah-Hartman
04 Oct, 2018
1 commit
-
Replacing all occurrences of (1<
Reviewed-by: Daniel Vetter
Signed-off-by: Greg Kroah-Hartman
17 Sep, 2018
1 commit
-
Handle the merge issues and take the iio and staging driver fixes.
Signed-off-by: Greg Kroah-Hartman
10 Sep, 2018
1 commit
-
Motivated by the ksummit-discuss discussion.
Cc: Shuah Khan
Cc: Thomas Petazzoni
Cc: Mauro Carvalho Chehab
Cc: linux-fbdev@vger.kernel.org
Signed-off-by: Daniel Vetter
Signed-off-by: Greg Kroah-Hartman
28 Aug, 2018
1 commit
-
Kernel coding style recommends a space char around "/".
Signed-off-by: Leonardo Brás
Signed-off-by: Greg Kroah-Hartman
08 Aug, 2018
8 commits
-
Puts spaces around the /.
Signed-off-by: Leonardo Brás
Signed-off-by: Greg Kroah-Hartman -
Changes this functions to avoid using "blank" on debug twice. Improves log readability.
Signed-off-by: Leonardo Brás
Signed-off-by: Greg Kroah-Hartman -
Erases some blank lines.
Signed-off-by: Leonardo Brás
Signed-off-by: Greg Kroah-Hartman -
This nesting level was removed to improve readability.
Signed-off-by: Leonardo Brás
Signed-off-by: Greg Kroah-Hartman -
Most of other "Gamma Tables" were already boxed on a define, just did the same to PIOLED.
Signed-off-by: Leonardo Brás
Signed-off-by: Greg Kroah-Hartman -
Adds a bit more information on debug.
The line break was to avoid obfuscating the parameters on the end of a large line.Signed-off-by: Leonardo Brás
Signed-off-by: Greg Kroah-Hartman -
Fixes (most) alignment issues pointed by checkpatch.pl.
Signed-off-by: Leonardo Brás
Signed-off-by: Greg Kroah-Hartman -
Puts macro arguments in parenthesis to avoid precedence issues.
Some large lines were broken to fit the 80-char limit.Signed-off-by: Leonardo Brás
Signed-off-by: Greg Kroah-Hartman
16 Jul, 2018
2 commits
-
Fix checkpatch warning: avoid unnecessary line continuation
to allow grepping of whole error message.Signed-off-by: Matthias Wolf
Signed-off-by: Felix Siegel
Signed-off-by: Tim Cofala
Signed-off-by: Greg Kroah-Hartman -
Fix checkpatch line over 80 characters where it seemed appropriate
Signed-off-by: Matthias Wolf
Signed-off-by: Felix Siegel
Signed-off-by: Tim Cofala
Signed-off-by: Greg Kroah-Hartman
02 Jul, 2018
1 commit
-
The dev section was opening curly bracket, but not adding ident, which
resulted in two times "}," after each other with same indentation. Add
ident at the right place fixes this problem.This formatting issue is not detectable by checkpatch.pl
Signed-off-by: Radek Dostál
Signed-off-by: Greg Kroah-Hartman
11 Jun, 2018
1 commit
-
Pull backlight updates from Lee Jones:
"Core Frameworks
- Provide helpers to enable/disable backlight
- Provide standard and devres versions OF find helpersNew Drivers:
- Add support for the Zodiac Inflight Innovations RAVE Supervisory
ProcessorNew Functionality:
- Allow pwm-on/pwm-off delay to be specified via DTBug Fixes:
- Fix ordering of the power {en,dis}able and PWM {en,dis}able
signals
- Fix Device Tree node look-up"* tag 'backlight-next-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight:
backlight: as3711_bl: Fix Device Tree node leaks
backlight: tps65217_bl: Fix Device Tree node lookup
backlight: max8925_bl: Fix Device Tree node lookup
backlight: as3711_bl: Fix Device Tree node lookup
MAINTAINERS: Add dri-devel for backlight subsystem patches
backlight: Nuke BL_CORE_DRIVER1
staging: fbtft: Stop using BL_CORE_DRIVER1
backlight: pandora: Stop using BL_CORE_DRIVER1
backlight: generic-bl: Remove DRIVER1 state
backlight: Nuke unused backlight.props.state states
backlight: otm3225a: Add support for ORISE OTM3225A LCD SoC
backlight: pwm_bl: Don't use GPIOF_* with gpiod_get_direction
pwm-backlight: Add support for PWM delays proprieties.
dt-bindings: pwm-backlight: Add PWM delay proprieties.
pwm-backlight: Enable/disable the PWM before/after LCD enable toggle.
dt-bindings: backlight: Add binding for RAVE SP backlight driver
backlight: Add RAVE SP backlight driver
30 Apr, 2018
1 commit
-
Leaking driver internal tracking into the already massively confusing
backlight power tracking is really confusing.Luckily we have already a drvdata structure, so fixing this is really
easy.Signed-off-by: Daniel Vetter
Acked-by: Daniel Thompson
Reviewed-by: Jani Nikula
Signed-off-by: Lee Jones
23 Apr, 2018
2 commits
-
Fix checkpatch.pl warnings of lines exceeding 80 columns.
Break lines in order to reduce instructions lengths to less than 80 columns.Signed-off-by: Renato Soma
Signed-off-by: Greg Kroah-Hartman -
To make sure that these drivers do not leave staging before they
are properly converted to use the new GPIO descriptor API, create
the TODO file with this work item.Cc: Thomas Petazzoni
Cc: Noralf Tronnes
Signed-off-by: Linus Walleij
Signed-off-by: Greg Kroah-Hartman
25 Jan, 2018
1 commit
-
Since nothing builds/depends on FB_TFT_SSD1325, we could remove it.
Signed-off-by: Corentin Labbe
Signed-off-by: Greg Kroah-Hartman
15 Jan, 2018
2 commits
-
Now that the SPDX tag is in all fbtft files, that identifies the license
in a specific and legally-defined manner. So the extra GPL text wording
can be removed as it is no longer needed at all.This is done on a quest to remove the 700+ different ways that files in
the kernel describe the GPL license text. And there's unneeded stuff
like the address (sometimes incorrect) for the FSF which is never
needed.No copyright headers or other non-license-description text was removed.
Cc: Thomas Petazzoni
Signed-off-by: Greg Kroah-Hartman -
It's good to have SPDX identifiers in all files to make it easier to
audit the kernel tree for correct licenses.Fix up the all of the staging fbtft drivers to have a proper SPDX
identifier, based on the license text in the file itself. The SPDX
identifier is a legally binding shorthand, which can be used instead of
the full boiler plate text.This work is based on a script and data from Thomas Gleixner, Philippe
Ombredanne, and Kate Stewart.Cc: Thomas Gleixner
Cc: Kate Stewart
Cc: Philippe Ombredanne
Cc: Thomas Petazzoni
Signed-off-by: Greg Kroah-Hartman
11 Jan, 2018
1 commit
-
This fixes the checkpatch message:
CHECK: Alignment should match open parenthesis
#1380: FILE: drivers/staging/fbtft/fbtft-core.c:1380:
+ dev_warn(dev,
+ "no default functions for regwidth=%d and buswidth=%d\n",Signed-off-by: Luis Gerhorst
Signed-off-by: Jonny Schaefer
Acked-by: Alexander Wuerstlein
Signed-off-by: Greg Kroah-Hartman
08 Jan, 2018
2 commits
-
The Linux kernel coding style states that braces should only be used
when necessary.This fixes the checkpatch warning
WARNING: line over 80 characters
+ } else if (display->regwidth == 8 && display->buswidth == 9 && par->spi) {introduced by patch #1.
Signed-off-by: Luis Gerhorst
Acked-by: Jonny Schaefer
Acked-by: Alexander Wuerstlein
Signed-off-by: Greg Kroah-Hartman -
This removes the following warning issued by checkpatch
WARNING: suspect code indent for conditional statements (8, 8)
+ } else
+ if (display->regwidth == 8 && display->buswidth == 9 && par->spi) {Signed-off-by: Luis Gerhorst
Acked-by: Jonny Schaefer
Acked-by: Alexander Wuerstlein
Signed-off-by: Greg Kroah-Hartman
14 Nov, 2017
1 commit
-
Pull staging and IIO updates from Greg KH:
"Here is the "big" staging and IIO driver update for 4.15-rc1.Lots and lots of little changes, almost all minor code cleanups as the
Outreachy application process happened during this development cycle.
Also happened was a lot of IIO driver activity, and the typec USB code
moving out of staging to drivers/usb (same commits are in the USB tree
on a persistent branch to not cause merge issues.)Overall, it's a wash, I think we added a few hundred more lines than
removed, but really only a few thousand were modified at all.All of these have been in linux-next for a while. There might be a
merge issue with Al's vfs tree in the pi433 driver (take his changes,
they are always better), and the media tree with some of the odd
atomisp cleanups (take the media tree's version)"* tag 'staging-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (507 commits)
staging: lustre: add SPDX identifiers to all lustre files
staging: greybus: Remove redundant license text
staging: greybus: add SPDX identifiers to all greybus driver files
staging: ccree: simplify ioread/iowrite
staging: ccree: simplify registers access
staging: ccree: simplify error handling logic
staging: ccree: remove dead code
staging: ccree: handle limiting of DMA masks
staging: ccree: copy IV to DMAable memory
staging: fbtft: remove redundant initialization of buf
staging: sm750fb: Fix parameter mistake in poke32
staging: wilc1000: Fix bssid buffer offset in Txq
staging: fbtft: fb_ssd1331: fix mirrored display
staging: android: Fix checkpatch.pl error
staging: greybus: loopback: convert loopback to use generic async operations
staging: greybus: operation: add private data with get/set accessors
staging: greybus: loopback: Fix iteration count on async path
staging: greybus: loopback: Hold per-connection mutex across operations
staging: greybus/loopback: use ktime_get() for time intervals
staging: fsl-dpaa2/eth: Extra headroom in RX buffers
...