提交 b72ee1f1 编写于 作者: B Bjorn Helgaas 提交者: Andi Kleen

PNP: whitespace/coding style fixes

No functional change; just make a couple declarations
consistent with the rest of the file.
Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: NAndi Kleen <ak@linux.intel.com>
Acked-by: NRene Herman <rene.herman@gmail.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 57fd51a8
...@@ -216,12 +216,12 @@ static ssize_t pnp_show_options(struct device *dmdev, ...@@ -216,12 +216,12 @@ static ssize_t pnp_show_options(struct device *dmdev,
struct device_attribute *attr, char *buf) struct device_attribute *attr, char *buf)
{ {
struct pnp_dev *dev = to_pnp_dev(dmdev); struct pnp_dev *dev = to_pnp_dev(dmdev);
pnp_info_buffer_t *buffer;
struct pnp_option *independent = dev->independent; struct pnp_option *independent = dev->independent;
struct pnp_option *dependent = dev->dependent; struct pnp_option *dependent = dev->dependent;
int ret, dep = 1; int ret, dep = 1;
pnp_info_buffer_t *buffer = (pnp_info_buffer_t *) buffer = pnp_alloc(sizeof(pnp_info_buffer_t));
pnp_alloc(sizeof(pnp_info_buffer_t));
if (!buffer) if (!buffer)
return -ENOMEM; return -ENOMEM;
...@@ -248,17 +248,18 @@ static ssize_t pnp_show_current_resources(struct device *dmdev, ...@@ -248,17 +248,18 @@ static ssize_t pnp_show_current_resources(struct device *dmdev,
char *buf) char *buf)
{ {
struct pnp_dev *dev = to_pnp_dev(dmdev); struct pnp_dev *dev = to_pnp_dev(dmdev);
pnp_info_buffer_t *buffer;
struct pnp_resource *pnp_res; struct pnp_resource *pnp_res;
struct resource *res; struct resource *res;
int ret; int ret;
pnp_info_buffer_t *buffer;
if (!dev) if (!dev)
return -EINVAL; return -EINVAL;
buffer = (pnp_info_buffer_t *) pnp_alloc(sizeof(pnp_info_buffer_t)); buffer = pnp_alloc(sizeof(pnp_info_buffer_t));
if (!buffer) if (!buffer)
return -ENOMEM; return -ENOMEM;
buffer->len = PAGE_SIZE; buffer->len = PAGE_SIZE;
buffer->buffer = buf; buffer->buffer = buf;
buffer->curr = buffer->buffer; buffer->curr = buffer->buffer;
...@@ -295,8 +296,8 @@ static ssize_t pnp_show_current_resources(struct device *dmdev, ...@@ -295,8 +296,8 @@ static ssize_t pnp_show_current_resources(struct device *dmdev,
return ret; return ret;
} }
static ssize_t static ssize_t pnp_set_current_resources(struct device *dmdev,
pnp_set_current_resources(struct device *dmdev, struct device_attribute *attr, struct device_attribute *attr,
const char *ubuf, size_t count) const char *ubuf, size_t count)
{ {
struct pnp_dev *dev = to_pnp_dev(dmdev); struct pnp_dev *dev = to_pnp_dev(dmdev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册