Merge tag 'drivers_soc_for_5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone into arm/drivers
soc: ti: couple of non critical fixes for v5.1 - Fix the Clang warning for enum in Navigator dma - Simplify code in ti_sci with DEFINE_SHOW_ATTRIBUTE macro * tag 'drivers_soc_for_5.1' of git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone: soc: ti: knav_dma: Use proper enum in pktdma_init_chan firmware: ti_sci: Change to use DEFINE_SHOW_ATTRIBUTE macro Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -146,25 +146,8 @@ static int ti_sci_debug_show(struct seq_file *s, void *unused)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* ti_sci_debug_open() - debug file open
|
||||
* @inode: inode pointer
|
||||
* @file: file pointer
|
||||
*
|
||||
* Return: result of single_open
|
||||
*/
|
||||
static int ti_sci_debug_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
return single_open(file, ti_sci_debug_show, inode->i_private);
|
||||
}
|
||||
|
||||
/* log file operations */
|
||||
static const struct file_operations ti_sci_debug_fops = {
|
||||
.open = ti_sci_debug_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
.release = single_release,
|
||||
};
|
||||
/* Provide the log file operations interface*/
|
||||
DEFINE_SHOW_ATTRIBUTE(ti_sci_debug);
|
||||
|
||||
/**
|
||||
* ti_sci_debugfs_create() - Create log debug file
|
||||
|
@@ -598,7 +598,7 @@ static int pktdma_init_chan(struct knav_dma_device *dma,
|
||||
|
||||
INIT_LIST_HEAD(&chan->list);
|
||||
chan->dma = dma;
|
||||
chan->direction = DMA_NONE;
|
||||
chan->direction = DMA_TRANS_NONE;
|
||||
atomic_set(&chan->ref_count, 0);
|
||||
spin_lock_init(&chan->lock);
|
||||
|
||||
|
Reference in New Issue
Block a user