mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
misc: tegra_cec: fix sparse warning
Fix sparse warning by adding static keyword to functions Bug 200032218 Change-Id: I0fe65173eb0295f5b981fa44f381683efe9a980b Signed-off-by: Spencer Sutterlin <ssutterlin@nvidia.com> Reviewed-on: http://git-master/r/592290 Reviewed-on: http://git-master/r/1164145 (cherry picked from commit 74cfb080d07bc8e5758dfb83c4ce7507f16e4c9a)
This commit is contained in:
committed by
Prafull Suryawanshi
parent
6432b7db50
commit
43ca60174f
@@ -48,7 +48,7 @@ static ssize_t cec_logical_addr_show(struct device *dev,
|
||||
static DEVICE_ATTR(cec_logical_addr_config, S_IWUSR | S_IRUGO,
|
||||
cec_logical_addr_show, cec_logical_addr_store);
|
||||
|
||||
int tegra_cec_open(struct inode *inode, struct file *file)
|
||||
static int tegra_cec_open(struct inode *inode, struct file *file)
|
||||
{
|
||||
struct miscdevice *miscdev = file->private_data;
|
||||
struct tegra_cec *cec = container_of(miscdev,
|
||||
@@ -66,7 +66,7 @@ int tegra_cec_open(struct inode *inode, struct file *file)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int tegra_cec_release(struct inode *inode, struct file *file)
|
||||
static int tegra_cec_release(struct inode *inode, struct file *file)
|
||||
{
|
||||
struct tegra_cec *cec = file->private_data;
|
||||
|
||||
@@ -124,7 +124,7 @@ int tegra_cec_native_write_l(struct tegra_cec *cec, const u8 *buf, size_t cnt)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ssize_t tegra_cec_write(struct file *file, const char __user *buf,
|
||||
static ssize_t tegra_cec_write(struct file *file, const char __user *buf,
|
||||
size_t count, loff_t *ppos)
|
||||
{
|
||||
u8 tx_buf[TEGRA_CEC_FRAME_MAX_LENGTH];
|
||||
@@ -151,7 +151,7 @@ ssize_t tegra_cec_write(struct file *file, const char __user *buf,
|
||||
return count;
|
||||
}
|
||||
|
||||
ssize_t tegra_cec_read(struct file *file, char __user *buffer,
|
||||
static ssize_t tegra_cec_read(struct file *file, char __user *buffer,
|
||||
size_t count, loff_t *ppos)
|
||||
{
|
||||
struct tegra_cec *cec = file->private_data;
|
||||
|
||||
Reference in New Issue
Block a user