Skip to content

Commit f02777b

Browse files
vilieglevand
authored andcommitted
drivers/ps3: Fix checkpatch warnings in ps3av.c
Signed-off-by: Valentin Ilie <valentin.ilie@gmail.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Geoff Levand <geoff@infradead.org>
1 parent 02ec92b commit f02777b

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

‎drivers/ps3/ps3av.c‎

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ int ps3av_do_pkt(u32 cid, u16 send_len, size_t usr_buf_size,
338338
mutex_unlock(&ps3av->mutex);
339339
return 0;
340340

341-
err:
341+
err:
342342
mutex_unlock(&ps3av->mutex);
343343
printk(KERN_ERR "%s: failed cid:%x res:%d\n", __func__, cid, res);
344344
return res;
@@ -477,7 +477,6 @@ int ps3av_set_audio_mode(u32 ch, u32 fs, u32 word_bits, u32 format, u32 source)
477477

478478
return 0;
479479
}
480-
481480
EXPORT_SYMBOL_GPL(ps3av_set_audio_mode);
482481

483482
static int ps3av_set_videomode(void)
@@ -501,7 +500,7 @@ static void ps3av_set_videomode_packet(u32 id)
501500

502501
video_mode = &video_mode_table[id & PS3AV_MODE_MASK];
503502

504-
avb_param.num_of_video_pkt = PS3AV_AVB_NUM_VIDEO; /* num of head */
503+
avb_param.num_of_video_pkt = PS3AV_AVB_NUM_VIDEO; /* num of head */
505504
avb_param.num_of_audio_pkt = 0;
506505
avb_param.num_of_av_video_pkt = ps3av->av_hw_conf.num_of_hdmi +
507506
ps3av->av_hw_conf.num_of_avmulti;
@@ -521,7 +520,7 @@ static void ps3av_set_videomode_packet(u32 id)
521520
#ifndef PS3AV_HDMI_YUV
522521
if (ps3av->av_port[i] == PS3AV_CMD_AVPORT_HDMI_0 ||
523522
ps3av->av_port[i] == PS3AV_CMD_AVPORT_HDMI_1)
524-
av_video_cs = RGB8; /* use RGB for HDMI */
523+
av_video_cs = RGB8; /* use RGB for HDMI */
525524
#endif
526525
len += ps3av_cmd_set_av_video_cs(&avb_param.buf[len],
527526
ps3av->av_port[i],
@@ -590,8 +589,8 @@ static void ps3avd(struct work_struct *work)
590589
#define SHIFT_VESA 8
591590

592591
static const struct {
593-
unsigned mask : 19;
594-
unsigned id : 4;
592+
unsigned mask:19;
593+
unsigned id:4;
595594
} ps3av_preferred_modes[] = {
596595
{ PS3AV_RESBIT_WUXGA << SHIFT_VESA, PS3AV_MODE_WUXGA },
597596
{ PS3AV_RESBIT_1920x1080P << SHIFT_60, PS3AV_MODE_1080P60 },
@@ -667,7 +666,8 @@ static enum ps3av_mode_num ps3av_hdmi_get_id(struct ps3av_info_monitor *info)
667666
return id;
668667
}
669668

670-
static void ps3av_monitor_info_dump(const struct ps3av_pkt_av_get_monitor_info *monitor_info)
669+
static void ps3av_monitor_info_dump(
670+
const struct ps3av_pkt_av_get_monitor_info *monitor_info)
671671
{
672672
const struct ps3av_info_monitor *info = &monitor_info->info;
673673
const struct ps3av_info_audio *audio = info->audio;
@@ -717,8 +717,8 @@ static void ps3av_monitor_info_dump(const struct ps3av_pkt_av_get_monitor_info *
717717

718718
/* audio block */
719719
for (i = 0; i < info->num_of_audio_block; i++) {
720-
pr_debug("audio[%d] type: %02x max_ch: %02x fs: %02x sbit: "
721-
"%02x\n",
720+
pr_debug(
721+
"audio[%d] type: %02x max_ch: %02x fs: %02x sbit: %02x\n",
722722
i, audio->type, audio->max_num_of_ch, audio->fs,
723723
audio->sbit);
724724
audio++;
@@ -870,21 +870,18 @@ int ps3av_set_video_mode(int id)
870870

871871
return 0;
872872
}
873-
874873
EXPORT_SYMBOL_GPL(ps3av_set_video_mode);
875874

876875
int ps3av_get_auto_mode(void)
877876
{
878877
return ps3av_auto_videomode(&ps3av->av_hw_conf);
879878
}
880-
881879
EXPORT_SYMBOL_GPL(ps3av_get_auto_mode);
882880

883881
int ps3av_get_mode(void)
884882
{
885883
return ps3av ? ps3av->ps3av_mode : 0;
886884
}
887-
888885
EXPORT_SYMBOL_GPL(ps3av_get_mode);
889886

890887
/* get resolution by video_mode */
@@ -902,7 +899,6 @@ int ps3av_video_mode2res(u32 id, u32 *xres, u32 *yres)
902899
*yres = video_mode_table[id].y;
903900
return 0;
904901
}
905-
906902
EXPORT_SYMBOL_GPL(ps3av_video_mode2res);
907903

908904
/* mute */
@@ -911,7 +907,6 @@ int ps3av_video_mute(int mute)
911907
return ps3av_set_av_video_mute(mute ? PS3AV_CMD_MUTE_ON
912908
: PS3AV_CMD_MUTE_OFF);
913909
}
914-
915910
EXPORT_SYMBOL_GPL(ps3av_video_mute);
916911

917912
/* mute analog output only */
@@ -935,7 +930,6 @@ int ps3av_audio_mute(int mute)
935930
return ps3av_set_audio_mute(mute ? PS3AV_CMD_MUTE_ON
936931
: PS3AV_CMD_MUTE_OFF);
937932
}
938-
939933
EXPORT_SYMBOL_GPL(ps3av_audio_mute);
940934

941935
static int __devinit ps3av_probe(struct ps3_system_bus_device *dev)

0 commit comments

Comments
 (0)