* [PATCH 1/2] drm/radeon: fix ATPX function documentation
@ 2012-10-25 13:09 Igor Murzov
2012-10-25 13:09 ` [PATCH 2/2] vga_switcheroo: Drop unused include and unused variables Igor Murzov
2012-10-25 16:19 ` [PATCH 1/2] drm/radeon: fix ATPX function documentation Alex Deucher
0 siblings, 2 replies; 3+ messages in thread
From: Igor Murzov @ 2012-10-25 13:09 UTC (permalink / raw)
To: Alex Deucher, David Airlie, dri-devel; +Cc: linux-kernel, Igor Murzov
Fix a copy&pasted documentation.
Signed-off-by: Igor Murzov <e-mail@date.by>
---
drivers/gpu/drm/radeon/radeon_atpx_handler.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_atpx_handler.c b/drivers/gpu/drm/radeon/radeon_atpx_handler.c
index 37f6a90..15f5ded 100644
--- a/drivers/gpu/drm/radeon/radeon_atpx_handler.c
+++ b/drivers/gpu/drm/radeon/radeon_atpx_handler.c
@@ -352,9 +352,9 @@ static int radeon_atpx_switchto(enum vga_switcheroo_client_id id)
}
/**
- * radeon_atpx_switchto - switch to the requested GPU
+ * radeon_atpx_power_state - power down/up the requested GPU
*
- * @id: GPU to switch to
+ * @id: GPU to power down/up
* @state: requested power state (0 = off, 1 = on)
*
* Execute the necessary ATPX function to power down/up the discrete GPU
--
1.7.12.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] vga_switcheroo: Drop unused include and unused variables.
2012-10-25 13:09 [PATCH 1/2] drm/radeon: fix ATPX function documentation Igor Murzov
@ 2012-10-25 13:09 ` Igor Murzov
2012-10-25 16:19 ` [PATCH 1/2] drm/radeon: fix ATPX function documentation Alex Deucher
1 sibling, 0 replies; 3+ messages in thread
From: Igor Murzov @ 2012-10-25 13:09 UTC (permalink / raw)
To: Alex Deucher, David Airlie, dri-devel; +Cc: linux-kernel, Igor Murzov
Signed-off-by: Igor Murzov <e-mail@date.by>
---
drivers/gpu/vga/vga_switcheroo.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/gpu/vga/vga_switcheroo.c b/drivers/gpu/vga/vga_switcheroo.c
index e25cf31..fa60add 100644
--- a/drivers/gpu/vga/vga_switcheroo.c
+++ b/drivers/gpu/vga/vga_switcheroo.c
@@ -18,7 +18,6 @@
*/
#include <linux/module.h>
-#include <linux/dmi.h>
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include <linux/fs.h>
@@ -376,7 +375,6 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf,
size_t cnt, loff_t *ppos)
{
char usercmd[64];
- const char *pdev_name;
int ret;
bool delay = false, can_switch;
bool just_mux = false;
@@ -468,7 +466,6 @@ vga_switcheroo_debugfs_write(struct file *filp, const char __user *ubuf,
goto out;
if (can_switch) {
- pdev_name = pci_name(client->pdev);
ret = vga_switchto_stage1(client);
if (ret)
printk(KERN_ERR "vga_switcheroo: switching failed stage 1 %d\n", ret);
@@ -540,7 +537,6 @@ fail:
int vga_switcheroo_process_delayed_switch(void)
{
struct vga_switcheroo_client *client;
- const char *pdev_name;
int ret;
int err = -EINVAL;
@@ -555,7 +551,6 @@ int vga_switcheroo_process_delayed_switch(void)
if (!client || !check_can_switch())
goto err;
- pdev_name = pci_name(client->pdev);
ret = vga_switchto_stage2(client);
if (ret)
printk(KERN_ERR "vga_switcheroo: delayed switching failed stage 2 %d\n", ret);
@@ -567,4 +562,3 @@ err:
return err;
}
EXPORT_SYMBOL(vga_switcheroo_process_delayed_switch);
-
--
1.7.12.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] drm/radeon: fix ATPX function documentation
2012-10-25 13:09 [PATCH 1/2] drm/radeon: fix ATPX function documentation Igor Murzov
2012-10-25 13:09 ` [PATCH 2/2] vga_switcheroo: Drop unused include and unused variables Igor Murzov
@ 2012-10-25 16:19 ` Alex Deucher
1 sibling, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2012-10-25 16:19 UTC (permalink / raw)
To: Igor Murzov; +Cc: Alex Deucher, David Airlie, dri-devel, linux-kernel
On Thu, Oct 25, 2012 at 9:09 AM, Igor Murzov <e-mail@date.by> wrote:
> Fix a copy&pasted documentation.
>
> Signed-off-by: Igor Murzov <e-mail@date.by>
Thanks. I've added this to my queue.
Alex
> ---
> drivers/gpu/drm/radeon/radeon_atpx_handler.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_atpx_handler.c b/drivers/gpu/drm/radeon/radeon_atpx_handler.c
> index 37f6a90..15f5ded 100644
> --- a/drivers/gpu/drm/radeon/radeon_atpx_handler.c
> +++ b/drivers/gpu/drm/radeon/radeon_atpx_handler.c
> @@ -352,9 +352,9 @@ static int radeon_atpx_switchto(enum vga_switcheroo_client_id id)
> }
>
> /**
> - * radeon_atpx_switchto - switch to the requested GPU
> + * radeon_atpx_power_state - power down/up the requested GPU
> *
> - * @id: GPU to switch to
> + * @id: GPU to power down/up
> * @state: requested power state (0 = off, 1 = on)
> *
> * Execute the necessary ATPX function to power down/up the discrete GPU
> --
> 1.7.12.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-25 16:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-25 13:09 [PATCH 1/2] drm/radeon: fix ATPX function documentation Igor Murzov
2012-10-25 13:09 ` [PATCH 2/2] vga_switcheroo: Drop unused include and unused variables Igor Murzov
2012-10-25 16:19 ` [PATCH 1/2] drm/radeon: fix ATPX function documentation Alex Deucher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).