media: drivers: media: pci: b2c2: Fix errors due to unappropriate coding style.
Fix error due to assignment in conditional expression. Fix errors due to absence of empty spaces separators after commas in function calls. Fix errors due to lines longer than 80 characters. Signed-off-by: Iliya Iliev <iliyailiev3592@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
aaef6a9dd0
commit
e4cf679c9a
@ -17,7 +17,8 @@ int flexcop_dma_allocate(struct pci_dev *pdev,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if ((tcpu = pci_alloc_consistent(pdev, size, &tdma)) != NULL) {
|
||||
tcpu = pci_alloc_consistent(pdev, size, &tdma);
|
||||
if (tcpu != NULL) {
|
||||
dma->pdev = pdev;
|
||||
dma->cpu_addr0 = tcpu;
|
||||
dma->dma_addr0 = tdma;
|
||||
@ -43,8 +44,8 @@ int flexcop_dma_config(struct flexcop_device *fc,
|
||||
flexcop_dma_index_t dma_idx)
|
||||
{
|
||||
flexcop_ibi_value v0x0, v0x4, v0xc;
|
||||
v0x0.raw = v0x4.raw = v0xc.raw = 0;
|
||||
|
||||
v0x0.raw = v0x4.raw = v0xc.raw = 0;
|
||||
v0x0.dma_0x0.dma_address0 = dma->dma_addr0 >> 2;
|
||||
v0xc.dma_0xc.dma_address1 = dma->dma_addr1 >> 2;
|
||||
v0x4.dma_0x4_write.dma_addr_size = dma->size / 4;
|
||||
@ -58,7 +59,8 @@ int flexcop_dma_config(struct flexcop_device *fc,
|
||||
fc->write_ibi_reg(fc, dma2_014, v0x4);
|
||||
fc->write_ibi_reg(fc, dma2_01c, v0xc);
|
||||
} else {
|
||||
err("either DMA1 or DMA2 can be configured within one flexcop_dma_config call.");
|
||||
err("either DMA1 or DMA2 can be configured within one %s call.",
|
||||
__func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@ -82,7 +84,8 @@ int flexcop_dma_xfer_control(struct flexcop_device *fc,
|
||||
r0x0 = dma2_010;
|
||||
r0xc = dma2_01c;
|
||||
} else {
|
||||
err("either transfer DMA1 or DMA2 can be started within one flexcop_dma_xfer_control call.");
|
||||
err("transfer DMA1 or DMA2 can be started within one %s call.",
|
||||
__func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
@ -113,6 +116,7 @@ static int flexcop_dma_remap(struct flexcop_device *fc,
|
||||
{
|
||||
flexcop_ibi_register r = (dma_idx & FC_DMA_1) ? dma1_00c : dma2_01c;
|
||||
flexcop_ibi_value v = fc->read_ibi_reg(fc, r);
|
||||
|
||||
deb_info("%s\n", __func__);
|
||||
v.dma_0xc.remap_enable = onoff;
|
||||
fc->write_ibi_reg(fc, r, v);
|
||||
|
Loading…
Reference in New Issue
Block a user