summaryrefslogtreecommitdiff
path: root/hdaps-tux.h
blob: 1c041f1b3723c3144286ac3dd91b8f0ba35d0e78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _HDAPS_TUX_H_
#define _HDAPS_TUX_H_

#define POSITION_FILE "/sys/devices/platform/hdaps/position"
#define TUX_FILE "tux.bmp"

/* UI constants */
#define W_WIDTH 480
#define W_HEIGHT 480

/* Polling constants */
#define TIMEOUT_VAL 15

#ifdef DEBUG
#define dprintf(fmt, args...) fprintf(stderr, fmt, ##args)
#else
#define dprintf(fmt, args...)
#endif /* DEBUG */

#endif /* _HDAPS_TUX_H_ */
r>mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2013-12-29 23:47:23 +0100
committerVinod Koul <vinod.koul@intel.com>2014-01-20 14:58:03 +0530
commitf3b77727e82722fafb1940b3fc15bfdddd9aab4a (patch)
tree2199e5f5b2ec7e66dbe781855705f87c3f234392 /drivers/dma/cppi41.c
parent9e2f7d827912609a71a53d625ee27d29dfbf87e0 (diff)
drivers/dma: fix error return code
Set the return variable to an error code as done elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/cppi41.c')