Skip to content

Commit

Permalink
drm/exynos/decon: Add include guard to the Exynos7 header
Browse files Browse the repository at this point in the history
Although header is included only once but still having an include guard
is a good practice.  To avoid confusion, add SoC prefix to existing
Exynos5433 header include guard.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
  • Loading branch information
Krzysztof Kozlowski authored and Inki Dae committed Jan 1, 2018
1 parent 4f52e55 commit ca52c71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/exynos/regs-decon5433.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* published by the Free Software Foundationr
*/

#ifndef EXYNOS_REGS_DECON_H
#define EXYNOS_REGS_DECON_H
#ifndef EXYNOS_REGS_DECON5433_H
#define EXYNOS_REGS_DECON5433_H

/* Exynos543X DECON */
#define DECON_VIDCON0 0x0000
Expand Down Expand Up @@ -206,4 +206,4 @@
#define CRCCTRL_CRCEN (0x1 << 0)
#define CRCCTRL_MASK (0x7)

#endif /* EXYNOS_REGS_DECON_H */
#endif /* EXYNOS_REGS_DECON5433_H */
5 changes: 5 additions & 0 deletions drivers/gpu/drm/exynos/regs-decon7.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
* option) any later version.
*/

#ifndef EXYNOS_REGS_DECON7_H
#define EXYNOS_REGS_DECON7_H

/* VIDCON0 */
#define VIDCON0 0x00

Expand Down Expand Up @@ -346,3 +349,5 @@

#define DECON_UPDATE_SLAVE_SYNC (1 << 4)
#define DECON_UPDATE_STANDALONE_F (1 << 0)

#endif /* EXYNOS_REGS_DECON7_H */

0 comments on commit ca52c71

Please sign in to comment.