title: How to use checkpatch.pl script for our own c files to validate coding style
body: <p>I have written one sample chardriver.
  I want to verify that coding style is matching with linux kernel coding style or not.</p>
  
  <h2>I did this:</h2>
  
  <p>root@vkalyanam-Lenovo-B41-80:~/linux/scripts# ./checkpatch.pl --no-tree --fix mychardriver.c</p>
  
  <p>ERROR: Does not appear to be a unified-diff format patch</p>
  
  <p>total: 1 errors, 0 warnings, 0 lines checked</p>
  
  <p>mychardriver.c has style problems, please review.</p>
  
  <p>NOTE: If any of the errors are false positives, please report</p>
  
  <h2>      them to the maintainer, see CHECKPATCH in MAINTAINERS.</h2>
  
  <p>Could you help me to resolve above error about unified-diff format patch.
  My exact requirement is to validate my own char driver file is matching with linux kernel coding style or not.</p>