gfxs_ctl 2454 drivers/platform/x86/sony-laptop.c static struct snc_gfx_switch_control *gfxs_ctl; gfxs_ctl 2461 drivers/platform/x86/sony-laptop.c if (sony_call_snc_handle(gfxs_ctl->handle, gfxs_ctl 2462 drivers/platform/x86/sony-laptop.c gfxs_ctl->handle == 0x015B ? 0x0000 : 0x0100, gfxs_ctl 2466 drivers/platform/x86/sony-laptop.c switch (gfxs_ctl->handle) { gfxs_ctl 2512 drivers/platform/x86/sony-laptop.c gfxs_ctl = kzalloc(sizeof(struct snc_gfx_switch_control), GFP_KERNEL); gfxs_ctl 2513 drivers/platform/x86/sony-laptop.c if (!gfxs_ctl) gfxs_ctl 2516 drivers/platform/x86/sony-laptop.c gfxs_ctl->handle = handle; gfxs_ctl 2518 drivers/platform/x86/sony-laptop.c sysfs_attr_init(&gfxs_ctl->attr.attr); gfxs_ctl 2519 drivers/platform/x86/sony-laptop.c gfxs_ctl->attr.attr.name = "gfx_switch_status"; gfxs_ctl 2520 drivers/platform/x86/sony-laptop.c gfxs_ctl->attr.attr.mode = S_IRUGO; gfxs_ctl 2521 drivers/platform/x86/sony-laptop.c gfxs_ctl->attr.show = sony_nc_gfx_switch_status_show; gfxs_ctl 2523 drivers/platform/x86/sony-laptop.c result = device_create_file(&pd->dev, &gfxs_ctl->attr); gfxs_ctl 2530 drivers/platform/x86/sony-laptop.c kfree(gfxs_ctl); gfxs_ctl 2531 drivers/platform/x86/sony-laptop.c gfxs_ctl = NULL; gfxs_ctl 2538 drivers/platform/x86/sony-laptop.c if (gfxs_ctl) { gfxs_ctl 2539 drivers/platform/x86/sony-laptop.c device_remove_file(&pd->dev, &gfxs_ctl->attr); gfxs_ctl 2541 drivers/platform/x86/sony-laptop.c kfree(gfxs_ctl); gfxs_ctl 2542 drivers/platform/x86/sony-laptop.c gfxs_ctl = NULL;