On Wed, Nov 14, 2018 at 11:49:15PM +0100, David Hildenbrand wrote:
> On 14.11.18 23:23, Matthew Wilcox wrote:
> > On Wed, Nov 14, 2018 at 10:17:00PM +0100, David Hildenbrand wrote:
> >> Rename PG_balloon to PG_offline. This is an indicator that the page is
> >> logically offline, the content stale
On Mon, Oct 10, 2016 at 07:31:46AM -0700, Edward Lipinsky wrote:
>
> Thanks, that makes sense. I tried deleting the if statement and printk()
> from ddk750_help.c, and adding the following in lynxfb_pci_probe() after
> calling hw_sm750_map() and checking for errors:
>
> if (sm750_dev->revid == 0
On Thu, Oct 06, 2016 at 09:27:36PM -0700, Edward Lipinsky wrote:
> On Sun, Oct 02, 2016 at 08:13:01PM +0200, Greg KH wrote:
> > On Sun, Oct 02, 2016 at 11:05:05AM -0700, Edward Lipinsky wrote:
> > > This patch fixes the checkpatch.pl warning:
> > >
> > > WARNING: printk() should include KERN_ faci
already has 'abs', use it instead of custom absDiff
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 3 ++-
drivers/staging/sm750fb/sm750_help.h | 8
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750
Use stratigh-forward of multi-bit register fields
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 907 +-
drivers/staging/sm750fb/sm750_accel.h | 62 +--
2 files changed, 484 insertions(+), 485 deletions(-)
diff --git a/drivers/staging
The MHz() and roundedDiv macros are used only by ddk750_chip.c, so move
their definition there.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 4
drivers/staging/sm750fb/sm750_help.h | 7 ---
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a
This header only contains unused FIELD_*() macros and friends and may be
removed
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_help.h | 1 -
drivers/staging/sm750fb/sm750_accel.c | 1 -
drivers/staging/sm750fb/sm750_cursor.c | 1 -
drivers/staging/sm750fb/sm750_help.h
rid of FIELD_*() macros.
Mike Rapoport (5):
staging: sm750fb: use BIT() macro for single-bit fields definition
staging: sm750: change definition of multi-bit register fields
staging: sm750fb: replace absDiff with kernel standard abs macro
staging: sm750fb: move MHz() and roundedDiv
Replace complex definition of single-bit fields with BIT() macro for the
registers that are not currently referenced by the driver.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 1071 +
drivers/staging/sm750fb/sm750_accel.h | 36 +-
2
Use stratight-forward definition of CRT_FB_ADDRESS register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 10 +++---
drivers/staging/sm750fb/sm750_hw.c | 4 ++--
2 files changed, 5 insertions
Use stratight-forward definition of DE_STRETCH_FORMAT register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_accel.c | 24 +++-
drivers/staging/sm750fb/sm750_accel.h | 31
Use stratight-forward definition of DE_WINDOW_WIDTH register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_accel.c | 15 +--
drivers/staging/sm750fb/sm750_accel.h | 5 +++--
2 files changed, 12
Use stratight-forward definition of DE_SOURCE register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_accel.c | 9 -
drivers/staging/sm750fb/sm750_accel.h | 11 +--
2 files changed, 9 insertions
Use stratight-forward definition of DE_DIMENSION register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_accel.c | 12 ++--
drivers/staging/sm750fb/sm750_accel.h | 5 +++--
2 files changed, 9 insertions
Use stratight-forward definition of CRT_FB_WIDTH register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
drivers/staging/sm750fb/sm750_hw.c | 9 -
2 files changed, 7 insertions(+), 7
Use stratight-forward definition of DE_PITCH register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_accel.c | 23 +++
drivers/staging/sm750fb/sm750_accel.h | 5 +++--
2 files changed, 14
Use stratight-forward definition of DE_CONTROL register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_accel.c | 45 +-
drivers/staging/sm750fb/sm750_accel.h | 112
Use stratight-forward definition of DE_DESTINATION register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_accel.c | 15 ++-
drivers/staging/sm750fb/sm750_accel.h | 9 -
2 files changed, 10
Use stratight-forward definition of CRT_VERTICAL_SYNC register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_mode.c | 7 +--
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
2 files changed, 8 insertions
Use stratight-forward definition of PANEL_HORIZONTAL_SYNC register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_mode.c | 7 +--
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
2 files changed, 8
Use straight-forward definition of HWC_COLOR_{12,3} register fields instead
of magic numbers
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_cursor.c | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750_cursor.c
b/drivers
Use stratight-forward definition of CRT_AUTO_CENTERING_TL register fields
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_mode.c | 4 +---
drivers/staging/sm750fb/ddk750_reg.h | 4 ++--
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/sm750fb
Use BIT() macro for single-bit fields of HWC_LOCATION register and
define HWC_LOCATION_{X,Y}_MASK for masking the address bits.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_cursor.c | 17 +++--
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/drivers
Use BIT() macro for single-bit fields of HWC_ADDRESS register and
define HWC_ADDRESS_ADDRESS_MASK for masking the address bits.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_cursor.c | 18 +-
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/drivers
Use stratight-forward definition of CRT_AUTO_CENTERING_BR register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_mode.c | 5 +++--
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
2 files changed, 6 insertions
Use stratight-forward definition of CRT_VERTICAL_TOTAL register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_mode.c | 7 +--
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
2 files changed, 8 insertions
Use stratight-forward definition of CRT_HORIZONTAL_TOTAL register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_mode.c | 7 +--
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
2 files changed, 8 insertions
Use stratight-forward definition of CRT_HORIZONTAL_SYNC register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_mode.c | 7 +--
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
2 files changed, 8 insertions
Use stratight-forward definition of PANEL_VERTICAL_TOTAL register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_mode.c | 7 +--
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
2 files changed, 8 insertions
Use stratight-forward definition of PANEL_VERTICAL_SYNC register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_mode.c | 7 +--
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
2 files changed, 8 insertions
Hi,
This is the third set of patches that aim to replace custom defines for
register fields. The ultimate goal is to have MSB:LSB notation for register
fields and FIELD_* macros removed.
Mike Rapoport (21):
staging: sm750fb: change definition of CRT_AUTO_CENTERING_TL fields
staging: sm750fb
Replace complex definition of PANEL_DISPLAY_CTRL register fields with BIT()
macro and use open-coded implementation for register manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c| 6 +--
drivers/staging/sm750fb/ddk750_display.c | 24 +-
drivers
Remove HungarianCamelCase notation.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_mode.c | 28
1 file changed, 16 insertions(+), 12 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_mode.c
b/drivers/staging/sm750fb/ddk750_mode.c
index
Hi,
This is the second set of patches that aim to replace custom defines for
register fields. The ultimate goal is to have MSB:LSB notation for register
fields and FIELD_* macros removed.
Mike Rapoport (30):
staging: sm750fb: formatPllReg: rename ulPllReg to reg
staging: sm750fb
Replace complex definition of CRT_DISPLAY_CTRL register fields with
BIT() macro and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_display.c | 2 +-
drivers/staging/sm750fb/ddk750_mode.c| 3 +--
drivers/staging
Use stratight-forward defintion of PANEL_HORIZONTAL_TOTAL register fields
and use open-coded implementation for register manipulations
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_mode.c | 9 ++---
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
2 files changed, 9
Replace complex definition of I2C_CTRL register fields with BIT() macro and
use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_hwi2c.c | 19 +++
drivers/staging/sm750fb/ddk750_reg.h | 20
Replace complex definition of I2C_STATUS register fields with BIT() macro
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_hwi2c.c | 4 +---
drivers/staging/sm750fb/ddk750_reg.h | 18 --
2 files
Use stratight-forward defintion of PANEL_WINDOW_HEIGHT register fields and
use open-coded implementation for register manipulations
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
drivers/staging/sm750fb/sm750_hw.c | 8 +---
2 files changed, 8 insertions
Use more straight-forward definitions for multi-bit fields of
CRT_DISPLAY_CTRL register and use open-coded implementation for register
manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_display.c | 4 ++-
drivers/staging/sm750fb/ddk750_mode.c| 18
Use stratight-forward defintion of PANEL_PLANE_TL register fields
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_reg.h
b/drivers/staging/sm750fb/ddk750_reg.h
index
Replace complex definition of DMA_ABORT_INTERRUPT register fields with
BIT() macro and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 2 +-
drivers/staging/sm750fb/ddk750_reg.h | 20
2 files
Use stratight-forward defintion of PANEL_WINDOW_WIDTH register fields and
use open-coded implementation for register manipulations
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
drivers/staging/sm750fb/sm750_hw.c | 7 ---
2 files changed, 7 insertions
Use stratight-forward defintion of PANEL_FB_WIDTH register fields and use
open-coded implementation for register manipulations
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
drivers/staging/sm750fb/sm750_hw.c | 8
2 files changed, 7 insertions(+), 6
Use stratight-forward defintion of PANEL_PLANE_BR register fields and
use open-coded implementation for register manipulations
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 5 +++--
drivers/staging/sm750fb/sm750_hw.c | 7 ---
2 files changed, 7 insertions(+), 5
Use BIT() macro for single-bit fields of PANEL_FB_ADDRESS register and
define PANEL_FB_ADDRESS_ADDRESS_MASK for masking the address bits.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 10 +++---
drivers/staging/sm750fb/sm750_hw.c | 8 +++-
2 files changed, 6
Use more straight-forward definitions for multi-bit fields of
PANEL_DISPLAY_CTRL register and use open-coded implementation for register
manipulation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_display.c | 4 +++-
drivers/staging/sm750fb/ddk750_reg.h | 27
The PANEL_DISPLAY_CTRL_TFT_DISP definitions artificially encode
PANEL_DISPLAY_CTRL_DUAL_DISPLAY and PANEL_DISPLAY_CTRL_DOUBLE_PIXEL bits
combinations. Replace the PANEL_DISPLAY_CTRL_TFT_DISP usage with direct use
of the bits defined in the datasheet.
Signed-off-by: Mike Rapoport
---
drivers
pr_debug would be enough
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_hw.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750_hw.c
b/drivers/staging/sm750fb/sm750_hw.c
index c0c2f1c..52fd250 100644
--- a/drivers/staging
The enable/disbable sequence in setDisplayControl function is duplicated
for primary and secondary display controllers. The function can be
refactored so that the common part of register access will be shared for
both controllers.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb
Use single mask for reserved bits in PANEL_DISPLAY_CTRL and
CRT_DISPLAY_CTRL registers.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_display.c | 11 ++-
drivers/staging/sm750fb/ddk750_mode.c| 7 ++-
drivers/staging/sm750fb/ddk750_reg.h | 29
Use more straight-forward definitions for multi-bit field of
VGA_CONFIGURATION register.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/sm750fb/ddk750_reg.h
b/drivers/staging/sm750fb
Remove HungarianCamelCase notation.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_display.c | 50
1 file changed, 25 insertions(+), 25 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_display.c
b/drivers/staging/sm750fb
Use PLL_CTRL_POWER definitions for CRT_PLL_CTRL register access
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_display.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_display.c
b/drivers/staging/sm750fb/ddk750_display.c
The display control registers for primary and secondary display share some
of the bits and those bits can be defined in a single place and then used
for manipulations of the relevant registers.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c| 6 +--
drivers/staging
Replace complex defintion of PLL_CTRL fields with BIT() macro and use
open-coded implementation for PLL register manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c| 5 +
drivers/staging/sm750fb/ddk750_display.c | 6 ++
drivers/staging/sm750fb
The PLL_CTRL fields have common defines for several PLL control
registers and re-defining the same values per register is not needed.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 64
1 file changed, 64 deletions(-)
diff --git a
Replace complex defintion of VGA_CONFIGURATION register fields with BIT()
macro and use open-coded implementation for VGA_CONFIGURATION
manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 3 +--
drivers/staging/sm750fb/ddk750_reg.h | 8 ++--
2 files
Use more straight-forward definitions for multi-bit field of
PANEL_PLL_CTRL register and use open-coded implementation for register
manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 24 +++-
drivers/staging/sm750fb/ddk750_reg.h | 15
Several PLL control registers have the same layout and therefore the
field definitions may be shared for those registers. Renaming
definitions of PANEL_PLL_CTRL_* fields to more generic PLL_CTRL_* will
allow reusing these definitions for other PLL control registers.
Signed-off-by: Mike Rapoport
Fix comment alignment and formatting to follow kernel coding style
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_chip.c
b/drivers/staging/sm750fb/ddk750_chip.c
Remove HungarianCamelCase notation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_chip.c
b/drivers/staging/sm750fb/ddk750_chip.c
index a9a8884..6ab26a9 100644
--- a
Replace complex definition of POWER_MODE_CTRL register fields with BIT()
macro and use open-coded implementation for register manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_power.c | 10 --
drivers/staging/sm750fb/ddk750_reg.h | 12 +++-
2 files
Use more straight-forward definitions for multi-bit field of
POWER_MODE_CTRL register and use open-coded implementation for register
manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_power.c | 13 +
drivers/staging/sm750fb/ddk750_reg.h | 8
2
Replace complex definition of CURRENT_GATE register fields with BIT() macro
and use open-coded implementation for register manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 3 +--
drivers/staging/sm750fb/ddk750_power.c | 18 +++---
drivers/staging
Use more straight-forward definitions for multi-bit fields of
CURRENT_GATE register and use open-coded implementation for register
manipulation.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 20 +--
drivers/staging/sm750fb/ddk750_reg.h | 36
Use more straight-forward definitions for multi-bit fields of MODE0_GATE
register.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_reg.h
b/drivers
Replace complex definition of GPIO_MUX register fields with BIT() macro
and use open-coded implementation for register manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_hwi2c.c | 7 +-
drivers/staging/sm750fb/ddk750_reg.h | 128
Remove HungarianCamelCase notation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_chip.c
b/drivers/staging/sm750fb/ddk750_chip.c
index
Replace complex definition of MODE0_GATE register fields with BIT() macro
and use open-coded implementation for register manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 2 +-
drivers/staging/sm750fb/ddk750_reg.h | 44
Remove HungarianCamelCase notation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 52 +--
1 file changed, 26 insertions(+), 26 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_chip.c
b/drivers/staging/sm750fb/ddk750_chip.c
Hi,
This is the first set of patches that aim to replace custom defines for
register fields. The ultimate goal is to have MSB:LSB notation for register
fields and FIELD_* macros removed.
Mike Rapoport (18):
staging: sm750fb: hw_sm750(le)_deWait: rename dwVal to val
staging: sm750fb: use BIT
Replace complex definition of DE_STATE1 field and usage of FIELD_SET with
BIT() macro and open-coded register value modifications
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 4 +---
drivers/staging/sm750fb/sm750_hw.c | 4 ++--
2 files changed, 3 insertions(+), 5
Use more straight-forward definitions for multi-bit fields of MISC_CTRL
register and use open-coded implementation for register manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 2 +-
drivers/staging/sm750fb/ddk750_reg.h | 28
For case when USE_HW_I2C is not defined, i2c{Read,Write}reg was wrongly
defined to use old function names.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_sii164.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_sii164.c
b
Use more straight-forward definitions for multi-bit fields of
SYSTEM_CTRL register and replace FIELD_GET/SET for these fields with
open-coded implementation.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_power.c | 2 +-
drivers/staging/sm750fb/ddk750_reg.h | 20
Replace complex definition of DE_STATE1 fields and usage of FIELD_GET
with BIT() macro and open-coded register value modifications
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 12 +++-
drivers/staging/sm750fb/sm750_hw.c | 8
2 files changed, 7
Replace complex definition of MISC_CTRL register fields with BIT() macro
and use open-coded implementation for register manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 4 +-
drivers/staging/sm750fb/ddk750_power.h | 11 ++
drivers/staging/sm750fb
Remove HungarianCamelCase notation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_hw.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750_hw.c
b/drivers/staging/sm750fb/sm750_hw.c
index 41822c6..f9908d9 100644
Definition of reserved fields in a register is not interesting
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_reg.h
b/drivers/staging/sm750fb/ddk750_reg.h
index db13bdf..38ebe95 100644
Replace complex definition of SYSTEM_CTRL fields and usage of
FIELD_GET/SET with BIT() macro and open-coded register value modifications
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_display.c | 24 --
drivers/staging/sm750fb/ddk750_reg.h | 76
Use a function to unregister framebuffer info and release its resources.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750.c | 25 +
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb
Several pr_info statements in lynxfb_pci_probe seem like debug leftovers
and may be removed.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750.c | 8
1 file changed, 8 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index
Split framebuffer allocation and registration into a dedicated function
to simplify lynxfb_pci_probe
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750.c | 98 +
1 file changed, 41 insertions(+), 57 deletions(-)
diff --git a/drivers/staging
Hi,
These patches refactor the lynxfb_pci_probe.
v4 changes:
* address Dan's comments
v3 changes:
* rebased on current Greg's staging-testing
v2 changes:
* add pci_disable_device on the cleanup path
* return actual error rather than ENODEV
Mike Rapoport (7):
staging: sm750fb: d
The par variable in lynxfb_pci_remove is only assigned a value and never
used afterwards. Remove it.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index
Will be used in futher refactoring of driver _probe and _remove methods.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750.c | 24 +---
drivers/staging/sm750fb/sm750.h | 2 +-
2 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/drivers/staging
The lynxfb_pci_probe always returned -ENODEV in case of error. Modify it
so that actual error code will be propogated to the caller.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750.c | 37 +
1 file changed, 17 insertions(+), 20 deletions
In case of error during lynxfb_pci_probe, the function returned without
calling pci_disable_device. Fix it by adding pci_disable_device on the
error cleanup path.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/staging
On Mon, Nov 16, 2015 at 09:59:49AM +0200, Mike Rapoport wrote:
> Hi,
>
> This is the first set of patches that aim to replace custom defines for
> register fields. The ultimate goal is to have MSB:LSB notation for register
> fields and FIELD_* macros removed.
I'd highly appr
On Sun, Nov 08, 2015 at 11:52:16AM +0200, Mike Rapoport wrote:
> Hi,
>
> These patches refactor the lynxfb_pci_probe
Any comments on this? Should I resend?
> v4 changes:
> * address Dan's comments
>
> v3 changes:
> * rebased on current Greg's stagin
Replace complex definition of POWER_MODE_CTRL register fields with BIT()
macro and use open-coded implementation for register manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_power.c | 10 --
drivers/staging/sm750fb/ddk750_reg.h | 12 +++-
2 files
Replace complex definition of CURRENT_GATE register fields with BIT() macro
and use open-coded implementation for register manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 3 +--
drivers/staging/sm750fb/ddk750_power.c | 18 +++---
drivers/staging
Remove HungarianCamelCase notation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 28 ++--
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_chip.c
b/drivers/staging/sm750fb/ddk750_chip.c
index
For case when USE_HW_I2C is not defined, i2c{Read,Write}reg was wrongly
defined to use old function names.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_sii164.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_sii164.c
b
Use more straight-forward definitions for multi-bit fields of MISC_CTRL
register and use open-coded implementation for register manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_chip.c | 2 +-
drivers/staging/sm750fb/ddk750_reg.h | 28
Replace complex definition of GPIO_MUX register fields with BIT() macro
and use open-coded implementation for register manipulations.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_hwi2c.c | 7 +-
drivers/staging/sm750fb/ddk750_reg.h | 128
Remove HungarianCamelCase notation
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/sm750_hw.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/staging/sm750fb/sm750_hw.c
b/drivers/staging/sm750fb/sm750_hw.c
index 41822c6..f9908d9 100644
Use more straight-forward definitions for multi-bit fields of MODE0_GATE
register.
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 20 ++--
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/sm750fb/ddk750_reg.h
b/drivers
Replace complex definition of DE_STATE1 fields and usage of FIELD_GET
with BIT() macro and open-coded register value modifications
Signed-off-by: Mike Rapoport
---
drivers/staging/sm750fb/ddk750_reg.h | 12 +++-
drivers/staging/sm750fb/sm750_hw.c | 8
2 files changed, 7
1 - 100 of 269 matches
Mail list logo