Skip to content
  • Ville Syrjälä's avatar
    lib/crc: Move pipe CRC stuff out from igt_debugfs · 03c4931e
    Ville Syrjälä authored
    
    
    No reason to hide the pipe CRC code inside the debugfs stuff.
    The fact that pipe CRCs are operated through debugfs is just
    an irrelevant implementation detail.
    
    Fixed up the few cases that don't include igt.h with this cocci:
    @find@
    identifier ID;
    @@
    igt_crc_t ID;
    
    @has_include@
    @@
    (
     #include "igt_pipe_crc.h"
    |
     #include "igt.h"
    )
    
    @depends on find && !has_include@
    @@
      #include "igt_kms.h"
    + #include "igt_pipe_crc.h"
    
    v2: better cocci to catch lib/igt_chamelium.c
    v3: Rebase and roll on doc fix from Petri
    v4: Use SPDX stuff
    
    Reviewed-by: default avatarPetri Latvala <petri.latvala@intel.com>
    Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    03c4931e