Mechanic was using 2 lb hammer to drive pin into valve while performing maintenance activities. As the hammer struck the pin, the employees 5th finger (pinky) struck metal valve mashing finger between hammer handle and valve. The employee received 7 stitches in 5th finger. Restricted duty only, no lost days.