aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2016-06-01 14:35:05 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-06-01 17:21:11 -0400
commit520d82677795fae92d7ce5768097bd5cada0f25a (patch)
tree9841db31dbcddf051d55db6c95831175795ec9d6 /drivers/input
parent0fd80a77e4d2f34e9fe66a73edf81d4a30bd4ca4 (diff)
Input: ti_am335x_tsc - use variable name for sizeof() operator
Fix the code formatting to use the kernel preferred style of using the actual variables to determize the size using the sizeof() operator. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/ti_am335x_tsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ti_am335x_tsc.c b/drivers/input/touchscreen/ti_am335x_tsc.c
index 8b3f15ca7725..7953381d939a 100644
--- a/drivers/input/touchscreen/ti_am335x_tsc.c
+++ b/drivers/input/touchscreen/ti_am335x_tsc.c
@@ -406,7 +406,7 @@ static int titsc_probe(struct platform_device *pdev)
406 int err; 406 int err;
407 407
408 /* Allocate memory for device */ 408 /* Allocate memory for device */
409 ts_dev = kzalloc(sizeof(struct titsc), GFP_KERNEL); 409 ts_dev = kzalloc(sizeof(*ts_dev), GFP_KERNEL);
410 input_dev = input_allocate_device(); 410 input_dev = input_allocate_device();
411 if (!ts_dev || !input_dev) { 411 if (!ts_dev || !input_dev) {
412 dev_err(&pdev->dev, "failed to allocate memory.\n"); 412 dev_err(&pdev->dev, "failed to allocate memory.\n");