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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJcVIjTAAoJEHJsHOdBp5c/xWQP+QFHtLYwGlX1hlcoNksh4TuE fkR3J6XaslJTHQmMfhDJjWiM5xCbMLW2WO86rfTDb32kXzoG4iZAvgCptbMiFUmr E6tJDzvR72fJjPyYK7LPxY9Ke9pl4fiiowV+vk87nl4ikfjp8OCHLok0aYXYBOXj MQjd3AEc3tO6FE/LBPH/q96qg90psgYzj8F6BLrVZjXKhF57vjdAw6Fe+tavn4bz jXnC6WbpwFccfkkoDAHE3A31HlKSR9c9Llrp/emHpVd78vD5fjWwv2SMcJcRVF8s yGEnZ7z3SHVpnqnMFzceXjaHVo4pVIOGGm7GvNNgP0VEUMYjCL2Z++2bobT1//5I EO1KAiyAWebqmi5nqYfktI4HBPN4gH83htN44GDG6X/Us5SAh399aBeZgkrLE4F8 tdiZO4ubLRmkhUER4sa1v80hxGYO5sKOoMnhGwHmapyzhC7nQgd/BpYCAXsFvZWO CvJcYpCiw5JfIvua9gvbBc3jHtfu1/Ct22vClEzkAu0DJso0dYpzqz0SE1ZxrFLg iDXrsmJPpPDqCxQl66jY5NgMDmaUTpTzNES28mC/K1wzlMHQFAKvR8BdFG5d9Usa CSbyZ8QVt8dCo+r6eu6GAFpSS0bg0/yTwlpsdDTIbzXklA45P8TjW40FCCRQcSuh keLDFnJPUTcfck07+XKI =h0cu -----END PGP SIGNATURE----- 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:
commit
50b0225bf4
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue