diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2019-02-15 12:01:47 -0500 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2019-02-15 12:02:04 -0500 |
| commit | 50b0225bf412df3cdeb2dc89b7e4b1119e30bedb (patch) | |
| tree | 1d1065be8855c4db666af6eff58950a0e1fb50d5 /drivers | |
| parent | 187b4ac7dfeb74cf6e6043f82aeab4ddc2a4c44a (diff) | |
| parent | 2b13ef1f4261688c2dc5d67dbee69ed2fdddf53e (diff) | |
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>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/firmware/ti_sci.c | 21 | ||||
| -rw-r--r-- | drivers/soc/ti/knav_dma.c | 2 |
2 files changed, 3 insertions, 20 deletions
diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 69ed1464175c..3fbbb61012c4 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c | |||
| @@ -146,25 +146,8 @@ static int ti_sci_debug_show(struct seq_file *s, void *unused) | |||
| 146 | return 0; | 146 | return 0; |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | /** | 149 | /* Provide the log file operations interface*/ |
| 150 | * ti_sci_debug_open() - debug file open | 150 | DEFINE_SHOW_ATTRIBUTE(ti_sci_debug); |
| 151 | * @inode: inode pointer | ||
| 152 | * @file: file pointer | ||
| 153 | * | ||
| 154 | * Return: result of single_open | ||
| 155 | */ | ||
| 156 | static int ti_sci_debug_open(struct inode *inode, struct file *file) | ||
| 157 | { | ||
| 158 | return single_open(file, ti_sci_debug_show, inode->i_private); | ||
| 159 | } | ||
| 160 | |||
| 161 | /* log file operations */ | ||
| 162 | static const struct file_operations ti_sci_debug_fops = { | ||
| 163 | .open = ti_sci_debug_open, | ||
| 164 | .read = seq_read, | ||
| 165 | .llseek = seq_lseek, | ||
| 166 | .release = single_release, | ||
| 167 | }; | ||
| 168 | 151 | ||
| 169 | /** | 152 | /** |
| 170 | * ti_sci_debugfs_create() - Create log debug file | 153 | * ti_sci_debugfs_create() - Create log debug file |
diff --git a/drivers/soc/ti/knav_dma.c b/drivers/soc/ti/knav_dma.c index e05ab16d9a9e..6285cd8efb21 100644 --- a/drivers/soc/ti/knav_dma.c +++ b/drivers/soc/ti/knav_dma.c | |||
| @@ -598,7 +598,7 @@ static int pktdma_init_chan(struct knav_dma_device *dma, | |||
| 598 | 598 | ||
| 599 | INIT_LIST_HEAD(&chan->list); | 599 | INIT_LIST_HEAD(&chan->list); |
| 600 | chan->dma = dma; | 600 | chan->dma = dma; |
| 601 | chan->direction = DMA_NONE; | 601 | chan->direction = DMA_TRANS_NONE; |
| 602 | atomic_set(&chan->ref_count, 0); | 602 | atomic_set(&chan->ref_count, 0); |
| 603 | spin_lock_init(&chan->lock); | 603 | spin_lock_init(&chan->lock); |
| 604 | 604 | ||
