mirror of https://gitee.com/openkylin/linux.git
drm/gma500: Fix trailing whitespaces
Adhere to kernel coding style. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Sam Ravnborg <sam@ravnborg.org> Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201201103542.2182-7-tzimmermann@suse.de
This commit is contained in:
parent
a33f187a3c
commit
ba596ee654
|
@ -421,16 +421,16 @@ static int cdv_power_up(struct drm_device *dev)
|
||||||
static void cdv_hotplug_work_func(struct work_struct *work)
|
static void cdv_hotplug_work_func(struct work_struct *work)
|
||||||
{
|
{
|
||||||
struct drm_psb_private *dev_priv = container_of(work, struct drm_psb_private,
|
struct drm_psb_private *dev_priv = container_of(work, struct drm_psb_private,
|
||||||
hotplug_work);
|
hotplug_work);
|
||||||
struct drm_device *dev = dev_priv->dev;
|
struct drm_device *dev = dev_priv->dev;
|
||||||
|
|
||||||
/* Just fire off a uevent and let userspace tell us what to do */
|
/* Just fire off a uevent and let userspace tell us what to do */
|
||||||
drm_helper_hpd_irq_event(dev);
|
drm_helper_hpd_irq_event(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The core driver has received a hotplug IRQ. We are in IRQ context
|
/* The core driver has received a hotplug IRQ. We are in IRQ context
|
||||||
so extract the needed information and kick off queued processing */
|
so extract the needed information and kick off queued processing */
|
||||||
|
|
||||||
static int cdv_hotplug_event(struct drm_device *dev)
|
static int cdv_hotplug_event(struct drm_device *dev)
|
||||||
{
|
{
|
||||||
struct drm_psb_private *dev_priv = dev->dev_private;
|
struct drm_psb_private *dev_priv = dev->dev_private;
|
||||||
|
@ -449,7 +449,7 @@ static void cdv_hotplug_enable(struct drm_device *dev, bool on)
|
||||||
} else {
|
} else {
|
||||||
REG_WRITE(PORT_HOTPLUG_EN, 0);
|
REG_WRITE(PORT_HOTPLUG_EN, 0);
|
||||||
REG_WRITE(PORT_HOTPLUG_STAT, REG_READ(PORT_HOTPLUG_STAT));
|
REG_WRITE(PORT_HOTPLUG_STAT, REG_READ(PORT_HOTPLUG_STAT));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *force_audio_names[] = {
|
static const char *force_audio_names[] = {
|
||||||
|
|
|
@ -50,7 +50,7 @@ parse_edp(struct drm_psb_private *dev_priv, struct bdb_header *bdb)
|
||||||
uint8_t panel_type;
|
uint8_t panel_type;
|
||||||
|
|
||||||
edp = find_section(bdb, BDB_EDP);
|
edp = find_section(bdb, BDB_EDP);
|
||||||
|
|
||||||
dev_priv->edp.bpp = 18;
|
dev_priv->edp.bpp = 18;
|
||||||
if (!edp) {
|
if (!edp) {
|
||||||
if (dev_priv->edp.support) {
|
if (dev_priv->edp.support) {
|
||||||
|
@ -80,7 +80,7 @@ parse_edp(struct drm_psb_private *dev_priv, struct bdb_header *bdb)
|
||||||
dev_priv->edp.pps = *edp_pps;
|
dev_priv->edp.pps = *edp_pps;
|
||||||
|
|
||||||
DRM_DEBUG_KMS("EDP timing in vbt t1_t3 %d t8 %d t9 %d t10 %d t11_t12 %d\n",
|
DRM_DEBUG_KMS("EDP timing in vbt t1_t3 %d t8 %d t9 %d t10 %d t11_t12 %d\n",
|
||||||
dev_priv->edp.pps.t1_t3, dev_priv->edp.pps.t8,
|
dev_priv->edp.pps.t1_t3, dev_priv->edp.pps.t8,
|
||||||
dev_priv->edp.pps.t9, dev_priv->edp.pps.t10,
|
dev_priv->edp.pps.t9, dev_priv->edp.pps.t10,
|
||||||
dev_priv->edp.pps.t11_t12);
|
dev_priv->edp.pps.t11_t12);
|
||||||
|
|
||||||
|
|
|
@ -505,7 +505,7 @@ static int oaktrail_chip_setup(struct drm_device *dev)
|
||||||
{
|
{
|
||||||
struct drm_psb_private *dev_priv = dev->dev_private;
|
struct drm_psb_private *dev_priv = dev->dev_private;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (pci_enable_msi(dev->pdev))
|
if (pci_enable_msi(dev->pdev))
|
||||||
dev_warn(dev->dev, "Enabling MSI failed!\n");
|
dev_warn(dev->dev, "Enabling MSI failed!\n");
|
||||||
|
|
||||||
|
|
|
@ -216,7 +216,7 @@ static void psb_intel_lvds_set_power(struct drm_device *dev, bool on)
|
||||||
dev_err(dev->dev, "set power, chip off!\n");
|
dev_err(dev->dev, "set power, chip off!\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (on) {
|
if (on) {
|
||||||
REG_WRITE(PP_CONTROL, REG_READ(PP_CONTROL) |
|
REG_WRITE(PP_CONTROL, REG_READ(PP_CONTROL) |
|
||||||
POWER_TARGET_ON);
|
POWER_TARGET_ON);
|
||||||
|
|
Loading…
Reference in New Issue