TV shows where the lead character's first name is the same as the actor's

Woody Harrelson as Woody Boyd in Cheers

Gene Barry played Gene Bradley in the 1970s series The Adventurer

Just one more, which will probably complete this topic:

Bernie Mac on “The Bernie Mac Show”.

How about James Garner playing James Rockford?