Ian McKellen was Gandalf in "LOTR"; Ian McEwan wrote the novel on which this 2007 Keira Knightley film was based
... Movie Review: 
Atonement (2007) ... Based on the British romance novel by Ian McEwan.