summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Debski <k.debski@samsung.com>2014-08-04 14:27:32 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-18 12:00:24 +0900
commite246ac1f2336f68d3088b7a9da5a655c628d24bc (patch)
tree54e2c3dfebbe8e7229488c5f15df5718826a1999
parent521cfa3ceaa47b7a49c5f2c9f3cb5fcd6d562bfb (diff)
downloadlinux-3.10-e246ac1f2336f68d3088b7a9da5a655c628d24bc.tar.gz
linux-3.10-e246ac1f2336f68d3088b7a9da5a655c628d24bc.tar.bz2
linux-3.10-e246ac1f2336f68d3088b7a9da5a655c628d24bc.zip
s5p-mfc: Comment spelling and code styling fix
Fix spelling mistakes in comment blocks and correct coding style of an if statement. Change-Id: I28707f1942566b222eb45a7715e489650a68a9a7 Reported-by: Zhaowei Yuan <zhaowei.yuan@samsung.com> Signed-off-by: Kamil Debski <k.debski@samsung.com>
-rwxr-xr-xdrivers/media/platform/s5p-mfc/s5p_mfc.c2
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index 0597b4d3a3f..8d30f1226fc 100755
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -161,7 +161,7 @@ static void s5p_mfc_watchdog_worker(struct work_struct *work)
clear_bit(0, &dev->hw_lock);
spin_unlock_irqrestore(&dev->irqlock, flags);
/* Double check if there is at least one instance running.
- * If no instance is in memory than no firmware should be present */
+ * If no instance is in memory then no firmware should be present */
if (dev->num_inst > 0) {
ret = s5p_mfc_reload_firmware(dev);
if (ret) {
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
index 5d5dde07d53..3315c48648b 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c
@@ -323,10 +323,9 @@ static void s5p_mfc_dec_calc_dpb_size_v5(struct s5p_mfc_ctx *ctx)
}
/* If interlace is deteced for MPEG2 decoding the size of the
- * luma an chroma buffers should be doubled */
+ * luma and chroma buffers should be doubled */
if (mfc_is_iommu_used(ctx) && ctx->interlace && ctx->codec_mode
- == S5P_MFC_CODEC_MPEG2_DEC)
- {
+ == S5P_MFC_CODEC_MPEG2_DEC) {
ctx->luma_size *= 2;
ctx->chroma_size *= 2;
}